mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 15:58:59 +08: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
@ -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…
x
Reference in New Issue
Block a user