libsysprof-ui: fix can-replay notification

Otherwise we don't get this until we switch tabs.
This commit is contained in:
Christian Hergert
2022-05-18 15:53:57 -07:00
parent 931ad7dfeb
commit 808b957682

View File

@ -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);
}