Move initialization into Uranium's run() function

This makes it possible to start a Uranium-based application without needing to know the magic incantation of starting the application.
This commit is contained in:
Ghostkeeper 2018-06-28 21:41:16 +02:00
parent 0cb6e506d2
commit 2b83af2497
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
2 changed files with 1 additions and 7 deletions

View file

@ -669,6 +669,7 @@ class CuraApplication(QtApplication):
self._plugins_loaded = True
def run(self):
super().run()
container_registry = self._container_registry
Logger.log("i", "Initializing variant manager")

View file

@ -134,11 +134,4 @@ import Arcus #@UnusedImport
from cura.CuraApplication import CuraApplication
app = CuraApplication()
app.addCommandLineOptions()
app.parseCliOptions()
app.initialize()
app.startSplashWindowPhase()
app.startPostSplashWindowPhase()
app.run()