[gnome-control-center/wip/hadess/show-profile-info-boxes] power: Fix logic when showing profile holds




commit 93cf2405ee03e9dcddb9d3e5cb6cda066558dfe5
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 27 15:49:26 2021 +0200

    power: Fix logic when showing profile holds
    
    A logic error meant that the power profiles info boxes container
    would not be shown if there wasn't a "degraded" performance as well.
    
    Spotted by Allan Day

 panels/power/cc-power-panel.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 3e1b323f4..a5c66aa9d 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1465,6 +1465,9 @@ power_profile_update_info_boxes (CcPowerPanel *self)
       app_id = variant_lookup_string (hold_variant, "ApplicationId");
       if (!app_id)
         continue;
+
+      gtk_widget_show (GTK_WIDGET (self->power_profile_info_listbox));
+
       app_info = g_desktop_app_info_new (app_id);
       name = app_info ? g_app_info_get_name (G_APP_INFO (app_info)) : app_id;
       held_profile = variant_lookup_string (hold_variant, "Profile");


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