diff options
author | Ondrej Kolin <ondrej.kolin@gmail.com> | 2023-05-04 15:13:17 +0200 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-05-05 09:32:55 +0000 |
commit | a0ee96c8ff480bf963568616ffa464e72dfdd8c0 (patch) | |
tree | 1d690c14ebc46b404b69b01a115e36f2dfaa0af1 /shell | |
parent | fd27a3c07bc1e32511cf4678796f4438b30c72ec (diff) | |
download | gnome-control-center-a0ee96c8ff480bf963568616ffa464e72dfdd8c0.tar.gz |
Set last-panel only for noncrashing panels
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/cc-window.c b/shell/cc-window.c index 52a6e4edc..b0aeba1d9 100644 --- a/shell/cc-window.c +++ b/shell/cc-window.c @@ -147,8 +147,6 @@ activate_panel (CcWindow *self, timer = g_timer_new (); - g_settings_set_string (self->settings, "last-panel", id); - /* Begin the profile */ g_timer_start (timer); @@ -177,6 +175,8 @@ activate_panel (CcWindow *self, g_debug ("Time to open panel '%s': %lfs", name, ellapsed_time); + g_settings_set_string (self->settings, "last-panel", id); + CC_RETURN (TRUE); } |