mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-03 03:54:01 -06:00
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:
parent
0cb6e506d2
commit
2b83af2497
2 changed files with 1 additions and 7 deletions
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue