From 069ff90feafb4c00290efa99f0e658137e6d3817 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Fri, 7 Aug 2015 17:02:51 -0400 Subject: [PATCH] Run the version upgrade before main window gets opened --- Cura/gui/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'): -- 2.30.2