From 1b13c1cc4357059d6bbdf3e2175987013f13d3c3 Mon Sep 17 00:00:00 2001 From: TheFGFSEagle Date: Sun, 8 Oct 2023 19:31:20 +0200 Subject: [PATCH] Make dialog close button actually close the dialog --- Nasal/gui/XMLDialog.nas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Nasal/gui/XMLDialog.nas b/Nasal/gui/XMLDialog.nas index b8c293eda..62e2c6c23 100644 --- a/Nasal/gui/XMLDialog.nas +++ b/Nasal/gui/XMLDialog.nas @@ -48,6 +48,10 @@ onWindowClosed: func { logprint(LOG_WARN, "XMLDialog window was requested to closed"); me.dialog().close(); + + # hack: manually trigger onClose for now. This should happen automatically + # in response to dialog().close(). + me.onClose(); }, onBringToFront: func()