GUI: Check before closing

This commit is contained in:
Mykola Grymalyuk
2023-05-21 13:34:59 -06:00
parent 5b4464a1f2
commit b0617887dd

View File

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