mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
headless+invidible: It is all about being hidden
So don't show any gui.
This commit is contained in:
parent
4b8d05092d
commit
37cf78487e
1 changed files with 3 additions and 3 deletions
|
@ -729,11 +729,11 @@ class CuraApplication(QtApplication):
|
|||
self.setMainQml(Resources.getPath(self.ResourceTypes.QmlFiles, "Cura.qml"))
|
||||
self._qml_import_paths.append(Resources.getPath(self.ResourceTypes.QmlFiles))
|
||||
|
||||
run_headless = self.getCommandLineOption("headless", False)
|
||||
if not run_headless:
|
||||
run_without_gui = self.getCommandLineOption("headless", False) or self.getCommandLineOption("headless", False)
|
||||
if not run_without_gui:
|
||||
self.initializeEngine()
|
||||
|
||||
if run_headless or self._engine.rootObjects:
|
||||
if run_without_gui or self._engine.rootObjects:
|
||||
self.closeSplash()
|
||||
|
||||
for file_name in self.getCommandLineOption("file", []):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue