From 907064583f145599a15c5e6c25ce3a51d11cd7e9 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 10 May 2019 19:57:53 -0700 Subject: [PATCH] libsysprof-ui: dont reload if the listbox is not visible --- src/libsysprof-ui/sysprof-profiler-menu-button.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsysprof-ui/sysprof-profiler-menu-button.c b/src/libsysprof-ui/sysprof-profiler-menu-button.c index 0482163e..361f5a36 100644 --- a/src/libsysprof-ui/sysprof-profiler-menu-button.c +++ b/src/libsysprof-ui/sysprof-profiler-menu-button.c @@ -355,7 +355,9 @@ sysprof_profiler_menu_button_clicked (GtkButton *button) g_assert (SYSPROF_IS_PROFILER_MENU_BUTTON (self)); - sysprof_process_model_queue_reload (priv->process_model); + /* don't reload if we aren't showing the list */ + if (!gtk_switch_get_active (priv->whole_system_switch)) + sysprof_process_model_queue_reload (priv->process_model); GTK_BUTTON_CLASS (sysprof_profiler_menu_button_parent_class)->clicked (button); }