Fix crash when canceling "Save game for later" file chooser

This is a workaround for vala#1104

Fixes #92
This commit is contained in:
Michael Catanzaro 2024-07-10 16:50:17 -05:00
parent 9547174ac3
commit b8f22fbbfa

View file

@ -1258,8 +1258,9 @@ Copyright © 20152016 Sahil Sareen""";
}
}
/* Why is the callback owned? https://gitlab.gnome.org/GNOME/gnome-chess/-/issues/92#note_2164360 */
private delegate void PresentSaveDialogCallback (bool saved);
private void present_save_dialog (PresentSaveDialogCallback? callback = null)
private void present_save_dialog (owned PresentSaveDialogCallback? callback = null)
{
if (save_dialog == null)
{