mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-22 14:17:29 +08:00
Improvement in booting order
This commit is contained in:
parent
1bfe296be7
commit
4bc47585e6
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user