mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-ui: dont reload if the listbox is not visible
This commit is contained in:
@ -355,7 +355,9 @@ sysprof_profiler_menu_button_clicked (GtkButton *button)
|
|||||||
|
|
||||||
g_assert (SYSPROF_IS_PROFILER_MENU_BUTTON (self));
|
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);
|
GTK_BUTTON_CLASS (sysprof_profiler_menu_button_parent_class)->clicked (button);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user