From e1896c0216a145ad966eb038b521a38a336de5e1 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Tue, 13 Aug 2019 11:26:28 +0300 Subject: [PATCH] Set parent for all busyinfo windows to put them properly on application screen --- gui/mainFrame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 52794e14e..b82c8337a 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -258,7 +258,7 @@ class MainFrame(wx.Frame): self.fitMultiSwitch.AddPage() return - self.waitDialog = wx.BusyInfo("Loading previous fits...") + self.waitDialog = wx.BusyInfo("Loading previous fits...", parent=self) OpenFitsThread(fits, self.closeWaitDialog) def _getDisplayData(self): @@ -778,7 +778,7 @@ class MainFrame(wx.Frame): if '.' not in os.path.basename(filePath): filePath += ".{0}".format(saveFmt) - self.waitDialog = wx.BusyInfo("Exporting skills needed...") + self.waitDialog = wx.BusyInfo("Exporting skills needed...", parent=self) sCharacter.backupSkills(filePath, saveFmt, self.getActiveFit(), self.closeWaitDialog) def fileImportDialog(self, event): @@ -960,7 +960,7 @@ class MainFrame(wx.Frame): ) as dlg: if dlg.ShowModal() == wx.ID_OK: self.supress_left_up = True - self.waitDialog = wx.BusyInfo("Importing Character...") + self.waitDialog = wx.BusyInfo("Importing Character...", parent=self) sCharacter = Character.getInstance() sCharacter.importCharacter(dlg.GetPaths(), self.importCharacterCallback)