diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2023-01-06 16:42:44 +0530 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2023-01-06 12:37:45 +0000 |
commit | bc919b82c03ab3595b3ac0cf49c9e29aef9bde9a (patch) | |
tree | 15af9a645fde79df662e4016a2efe6e81ac1b2ce /shell | |
parent | 8e43d2c53d6ed9d96d0af2c81c67b07880eb8d7f (diff) | |
download | gnome-control-center-bc919b82c03ab3595b3ac0cf49c9e29aef9bde9a.tar.gz |
panel-list: Switch to main list if custom sidebar is not set
If the previously shown panel had a custom sidebar, we were not switching
back to the main list if the currently shown panel doesn't have one.
This will result in the sidebar having empty content.
Fix it by always switching to main sidebar view if no custom sidebar widget
is set.
Fixes #2261
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-panel-list.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c index e122d94c3..91b0f70b6 100644 --- a/shell/cc-panel-list.c +++ b/shell/cc-panel-list.c @@ -1090,6 +1090,10 @@ cc_panel_list_add_sidebar_widget (CcPanelList *self, gtk_stack_add_named (self->stack, widget, "custom-widget"); switch_to_view (self, CC_PANEL_LIST_WIDGET); } + else + { + switch_to_view (self, CC_PANEL_LIST_MAIN); + } } void |