chiark / gitweb /
Show new dialog after main window is created, so it appears above it
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 11 Aug 2015 16:59:08 +0000 (12:59 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Tue, 11 Aug 2015 16:59:08 +0000 (12:59 -0400)
Cura/gui/app.py

index 91bea92d5daf8a3c74d9b4a5760ca8bf870b9f7f..ecfbc41543e99148964b2663de9aa26607848ed6 100644 (file)
@@ -153,9 +153,7 @@ class CuraApp(wx.App):
                if profile.getMachineSetting('machine_name') == '':
                        return
                if profile.getPreference('last_run_version') != version.getVersion(False):
-                       profile.putPreference('last_run_version', version.getVersion(False))
                        profile.performVersionUpgrade()
-                       newVersionDialog.newVersionDialog().Show()
 
                # Must happen before the main window is created, in case there are changes
                # that would affect it (such as machine name changes)
@@ -169,6 +167,10 @@ class CuraApp(wx.App):
                self.mainWindow.OnDropFiles(self.loadFiles)
                setFullScreenCapable(self.mainWindow)
 
+               if profile.getPreference('last_run_version') != version.getVersion(False):
+                       profile.putPreference('last_run_version', version.getVersion(False))
+                       newVersionDialog.newVersionDialog().Show()
+
                # Must come after creating the main window
                if version.isDevVersion():
                        import wx.lib.inspection