window: don't let window disposal cause app exit with greeter

If the greeter was shown and the window got closed, the whole app could
exit without this.
This commit is contained in:
Christian Hergert
2023-08-07 15:27:49 -07:00
parent 4aef0ffe12
commit 8d2fe823a3

View File

@ -209,6 +209,8 @@ sysprof_window_record_capture_action (GtkWidget *widget,
greeter = g_object_new (SYSPROF_TYPE_GREETER,
"transient-for", self,
NULL);
gtk_application_add_window (GTK_APPLICATION (SYSPROF_APPLICATION_DEFAULT),
GTK_WINDOW (greeter));
gtk_window_present (GTK_WINDOW (greeter));
}