diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index c6ae0392a1..305c69f833 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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()