[gnome-software/wip/detailed-preference-format: 2/2] gs-details-page: Keep chosen updatable app
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/detailed-preference-format: 2/2] gs-details-page: Keep chosen updatable app
- Date: Fri, 7 Oct 2022 04:53:55 +0000 (UTC)
commit 323739f277f035d4a615d7ee0568dd5726245c93
Author: Milan Crha <mcrha redhat com>
Date: Fri Oct 7 06:50:47 2022 +0200
gs-details-page: Keep chosen updatable app
It was meant to have shown installed apps, when such is selected by the user,
but only the 'installed' state was checked, while the 'updatable' apps are
also installed.
src/gs-details-page.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 508d39c4f..00c4e4529 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -750,7 +750,10 @@ gs_details_page_get_alternates_cb (GObject *source_object,
/* Do not allow change of the app by the packaging format when it's installed */
origin_by_packaging_format = origin_by_packaging_format &&
- self->app != NULL && gs_app_get_state (self->app) != GS_APP_STATE_INSTALLED;
+ self->app != NULL &&
+ gs_app_get_state (self->app) != GS_APP_STATE_INSTALLED &&
+ gs_app_get_state (self->app) != GS_APP_STATE_UPDATABLE &&
+ gs_app_get_state (self->app) != GS_APP_STATE_UPDATABLE_LIVE;
/* Sort the alternates by the user's packaging preferences */
if (self->packaging_format_preference != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]