From 808b95768218e2a3a37d8dd351ea6a68926c11d8 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 18 May 2022 15:53:57 -0700 Subject: [PATCH] libsysprof-ui: fix can-replay notification Otherwise we don't get this until we switch tabs. --- src/libsysprof-ui/sysprof-display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libsysprof-ui/sysprof-display.c b/src/libsysprof-ui/sysprof-display.c index c0876fba..7f597dda 100644 --- a/src/libsysprof-ui/sysprof-display.c +++ b/src/libsysprof-ui/sysprof-display.c @@ -124,6 +124,7 @@ sysprof_display_profiler_failed_cb (SysprofDisplay *self, g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_RECORDING]); g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TITLE]); + g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_REPLAY]); } static void @@ -869,6 +870,8 @@ sysprof_display_scan_finish (SysprofDisplay *self, (const SysprofMarkStat *)(gpointer)marks->data, marks->len); + g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_CAN_REPLAY]); + return g_task_propagate_boolean (G_TASK (result), error); }