From b0617887ddd6aec0eec122f9035fc25614a57dd0 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sun, 21 May 2023 13:34:59 -0600 Subject: [PATCH] GUI: Check before closing --- resources/wx_gui/gui_sys_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/wx_gui/gui_sys_patch.py b/resources/wx_gui/gui_sys_patch.py index 7042514cf..820ee056a 100644 --- a/resources/wx_gui/gui_sys_patch.py +++ b/resources/wx_gui/gui_sys_patch.py @@ -293,7 +293,7 @@ class SysPatchFrame(wx.Frame): logging.error(f"Unsupported variant: {variant}") return - self.frame_modal.Close() + self.frame_modal.Close() if self.frame_modal else None dialog = wx.Dialog(self, title=self.title, size=(400, 200))