From a0ee96c8ff480bf963568616ffa464e72dfdd8c0 Mon Sep 17 00:00:00 2001 From: Ondrej Kolin Date: Thu, 4 May 2023 15:13:17 +0200 Subject: Set last-panel only for noncrashing panels --- shell/cc-window.c | 4 ++-- 1 file 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); } -- cgit v1.2.1