[gnome-software/1479-repositories-settings-optional-repos-can-t-be-disabled] gs-repo-row: Use GS_APP_QUIRK_COMPULSORY to recognize system repositories
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1479-repositories-settings-optional-repos-can-t-be-disabled] gs-repo-row: Use GS_APP_QUIRK_COMPULSORY to recognize system repositories
- Date: Tue, 5 Oct 2021 09:49:03 +0000 (UTC)
commit d853d89b026b89ed2a544616e8ebfe8877514e26
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 5 11:00:20 2021 +0200
gs-repo-row: Use GS_APP_QUIRK_COMPULSORY to recognize system repositories
The GS_APP_QUIRK_PROVENANCE quirk does not mean it's also required repository,
thus use the GS_APP_QUIRK_COMPULSORY for repos, which cannot be disabled.
src/gs-repo-row.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-repo-row.c b/src/gs-repo-row.c
index 7df24e0e3..5e418e089 100644
--- a/src/gs-repo-row.c
+++ b/src/gs-repo-row.c
@@ -84,7 +84,7 @@ refresh_ui (GsRepoRow *row)
break;
}
- is_system_repo = gs_app_has_quirk (priv->repo, GS_APP_QUIRK_PROVENANCE);
+ is_system_repo = gs_app_has_quirk (priv->repo, GS_APP_QUIRK_COMPULSORY);
/* Disable for the system repos, if installed */
gtk_widget_set_sensitive (priv->disable_switch, priv->supports_enable_disable && (state_sensitive ||
!is_system_repo || priv->always_allow_enable_disable));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]