From: Youness Alaoui Date: Fri, 7 Aug 2015 21:02:51 +0000 (-0400) Subject: Run the version upgrade before main window gets opened X-Git-Tag: lulzbot-15.02.1-2.01~18 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=069ff90feafb4c00290efa99f0e658137e6d3817;p=cura.git Run the version upgrade before main window gets opened --- diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 4c4ec2cb..2691965b 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -152,11 +152,6 @@ class CuraApp(wx.App): return if profile.getMachineSetting('machine_name') == '': return - self.mainWindow = mainWindow.mainWindow() - self.destroySplashScreen() - self.SetTopWindow(self.mainWindow) - self.mainWindow.Show() - self.mainWindow.OnDropFiles(self.loadFiles) if profile.getPreference('last_run_version') != version.getVersion(False): profile.putPreference('last_run_version', version.getVersion(False)) profile.performVersionUpgrade() @@ -170,6 +165,11 @@ class CuraApp(wx.App): #wx.lib.inspection.InspectionTool().Show() + self.mainWindow = mainWindow.mainWindow() + self.destroySplashScreen() + self.SetTopWindow(self.mainWindow) + self.mainWindow.Show() + self.mainWindow.OnDropFiles(self.loadFiles) setFullScreenCapable(self.mainWindow) if sys.platform.startswith('darwin'):