[gnome-software/1744-software-remembers-past-install-intent] gs-details-page: Show "Pending installation..." on "Install" click in offline



commit f68b42835a9afb4f8e0224f7c04da3c735ec2a49
Author: Milan Crha <mcrha redhat com>
Date:   Tue May 17 14:31:18 2022 +0200

    gs-details-page: Show "Pending installation..." on "Install" click in offline
    
    When using "Install" button in offline, the app has only set "queued for install"
    state, but no plugin action, which causes the "Install" button turn into a "Cancel"
    button, with no explanation. The next gnome-software start the "Cancel" button
    has also "Pending installation..." label shown under itself. This change makes
    the label visible also when the plugin action is unknown.

 src/gs-details-page.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 4a9b4361a..94b3e41f5 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -359,6 +359,7 @@ gs_details_page_refresh_progress (GsDetailsPage *self)
                GsPluginAction action = gs_app_get_pending_action (self->app);
                gtk_widget_set_visible (self->label_progress_status, TRUE);
                switch (action) {
+               case GS_PLUGIN_ACTION_UNKNOWN:
                case GS_PLUGIN_ACTION_INSTALL:
                        gtk_label_set_label (GTK_LABEL (self->label_progress_status),
                                             /* TRANSLATORS: This is a label on top of the app's progress


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]