From 1d07db537bfa522cdc89516af8c685df65d903b3 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Tue, 11 Aug 2015 12:59:08 -0400 Subject: [PATCH] Show new dialog after main window is created, so it appears above it --- Cura/gui/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 91bea92d..ecfbc415 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -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 -- 2.30.2