[gnome-control-center/gbsneto/display-panel-polish: 4/4] display: Return to main page after applying changes




commit e5a49dcf7bfb35531aa2267ee86b4435039e7793
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Apr 15 15:22:23 2022 -0300

    display: Return to main page after applying changes
    
    After applying a change, it is useful to see the new state of the
    monitors, so move back to the 'displays' page after applying.

 panels/display/cc-display-panel.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 47131ea0e..593328acc 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -991,6 +991,8 @@ apply_current_configuration (CcDisplayPanel *self)
 
   if (error)
     g_warning ("Error applying configuration: %s", error->message);
+
+  adw_leaflet_set_visible_child_name (self->leaflet, "displays");
 }
 
 static void


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