launcher : move call to ShowSplashScreen and BackgroundInitialization to PreStart()
It doesn't change behaviour of launcher in beremiz, but may have some impact on some customizations.
Some customizations need to squeeze some bitmap folder init in between app creation and ShowSplashScreen
--- a/Beremiz.py Tue Jan 30 16:23:50 2018 +0100
+++ b/Beremiz.py Wed Jan 31 11:21:08 2018 +0100
@@ -124,9 +124,6 @@
if wx.VERSION < (3, 0, 0):
wx.InitAllImageHandlers()
- self.ShowSplashScreen()
- self.BackgroundInitialization()
-
def BackgroundInitialization(self):
self.InitI18n()
self.CheckUpdates()
@@ -186,6 +183,8 @@
def PreStart(self):
self.ProcessCommandLineArgs()
self.CreateApplication()
+ self.ShowSplashScreen()
+ self.BackgroundInitialization()
def MainLoop(self):
self.app.MainLoop()