[sysprof] libsysprof-ui: avoid splashing the assistant view



commit aae829741e61d0499cbca0d0b99765e8e5deed01
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 17 15:45:59 2022 -0700

    libsysprof-ui: avoid splashing the assistant view

 src/libsysprof-ui/sysprof-display.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c
index d2dda551..c0876fba 100644
--- a/src/libsysprof-ui/sysprof-display.c
+++ b/src/libsysprof-ui/sysprof-display.c
@@ -1107,6 +1107,12 @@ sysprof_display_open (SysprofDisplay *self,
       return;
     }
 
+  /* Jump right to the "view" page to avoid a quick view of the
+   * assistants page when loading.
+   */
+  if (g_strcmp0 ("assistant", gtk_stack_get_visible_child_name (priv->stack)) == 0)
+    gtk_stack_set_visible_child_name (priv->stack, "view");
+
   sysprof_display_load_async (self, reader, NULL, NULL, NULL);
   update_title_child_property (self);
 }


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