Do not show the "load project or models" dialog when opening a file from

a command line argument
This commit is contained in:
Nino van Hooff 2019-09-27 16:37:19 +02:00
parent 6b8a195fb4
commit abfd7e9266
2 changed files with 5 additions and 5 deletions

View file

@ -87,9 +87,9 @@ 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))
self._application.callLater(lambda f, skip_check = payload["filePath"]: self._application._openFile(f, skip_check))
# Command: Activate the window and bring it to the top.
elif command == "focus":