Consider user preference when opening project files from cli.

The logic using just a "skip_project_file_check" boolean was too obscure
imho, so used a string value with more explicit values
to improve readability

CURA-6824
This commit is contained in:
Nino van Hooff 2019-10-01 11:54:53 +02:00
parent eb1d0248c2
commit 2df0d96923
3 changed files with 23 additions and 5 deletions

View file

@ -87,7 +87,7 @@ class SingleInstance:
if command == "clear-all":
self._application.callLater(lambda: self._application.deleteAll())
# Command: Load a model file
# Command: Load a model or project file
elif command == "open":
self._application.callLater(lambda f = payload["filePath"]: self._application._openFile(f))