[gnome-software: 10/14] gs-details-page: Refresh all buttons when showing the Launch button




commit dd64ac4eb88e2cb6297757b204f9f25b2a4f9aa8
Author: Philip Withnall <pwithnall endlessos org>
Date:   Fri Aug 13 13:17:13 2021 +0100

    gs-details-page: Refresh all buttons when showing the Launch button
    
    The states of the buttons are all interlinked, and in particular an
    upcoming change will make their CSS classes more interlinked, so refresh
    all the buttons when the visibility of one of them changes.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1351

 src/gs-details-page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 4d7585194..6ac427c84 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1731,7 +1731,7 @@ gs_details_page_app_info_changed_cb (GAppInfoMonitor *monitor,
        if (!self->app || !gs_page_is_active (GS_PAGE (self)))
                return;
 
-       gtk_widget_set_visible (self->button_details_launch, gs_details_page_can_launch_app (self));
+       gs_details_page_refresh_buttons (self);
 }
 
 /* this is being called from GsShell */


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