[sysprof/wip/chergert/sysprof-3] libsysprof-ui: dont reload if the listbox is not visible
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: dont reload if the listbox is not visible
- Date: Sat, 11 May 2019 02:58:04 +0000 (UTC)
commit d7da25b7526492aec08b1786b5e7ec7f35775991
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]