[sysprof] libsysprof-ui: dont reload if the listbox is not visible



commit 907064583f145599a15c5e6c25ce3a51d11cd7e9
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 10 19:57:53 2019 -0700

    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 0482163..361f5a3 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);
 }


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