diff options
author | Ghostkeeper <rubend@tutanota.com> | 2018-06-28 22:41:16 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2018-06-28 22:41:16 +0300 |
commit | 2b83af24977f36af32d7dcff6641d1e63493244a (patch) | |
tree | 371933a8aed76377dad95f6a01f3ec5d996412a4 | |
parent | 0cb6e506d2d5f787218478fa7130bab221344af5 (diff) |
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.
-rwxr-xr-x | cura/CuraApplication.py | 1 | ||||
-rwxr-xr-x | cura_app.py | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 08f267d0e1..8a3d84d728 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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") diff --git a/cura_app.py b/cura_app.py index 2b823a25c9..a7059a3940 100755 --- a/cura_app.py +++ b/cura_app.py @@ -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() |