Improvement in booting order

This commit is contained in:
ChrisTerBeke 2017-12-22 12:27:45 +01:00
parent 1bfe296be7
commit 4bc47585e6

View File

@ -646,10 +646,6 @@ class CuraApplication(QtApplication):
else:
self.runWithGUI()
## Run Cura without GUI elements and interaction (server mode).
def runWithoutGUI(self):
self.closeSplash()
for file_name in self.getCommandLineOption("file", []):
self._openFile(file_name)
for file_name in self._open_file_queue: # Open all the files that were queued up while plug-ins were loading.
@ -658,6 +654,10 @@ class CuraApplication(QtApplication):
self._started = True
self.exec_()
## Run Cura without GUI elements and interaction (server mode).
def runWithoutGUI(self):
self.closeSplash()
## Run Cura with GUI (desktop mode).
def runWithGUI(self):
self.showSplashMessage(self._i18n_catalog.i18nc("@info:progress", "Setting up scene..."))
@ -716,9 +716,6 @@ class CuraApplication(QtApplication):
# Hide the splash screen
self.closeSplash()
self._started = True
self.exec_()
def getMachineManager(self, *args) -> MachineManager:
if self._machine_manager is None:
self._machine_manager = MachineManager.createMachineManager()