diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 2c225f31e8..b2970aeeaa 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -805,7 +805,7 @@ class CuraApplication(QtApplication): def _onPostStart(self): for file_name in self._files_to_open: - self.callLater(self._openFile, file_name) + self.callLater(self._openFile, file_name, True) for file_name in self._open_file_queue: # Open all the files that were queued up while plug-ins were loading. self.callLater(self._openFile, file_name) @@ -1549,8 +1549,8 @@ class CuraApplication(QtApplication): return job._node.setMeshData(mesh_data) - def _openFile(self, filename): - self.readLocalFile(QUrl.fromLocalFile(filename)) + def _openFile(self, filename, skip_project_file_check = False): + self.readLocalFile(QUrl.fromLocalFile(filename), skip_project_file_check) def _addProfileReader(self, profile_reader): # TODO: Add the profile reader to the list of plug-ins that can be used when importing profiles. diff --git a/cura/SingleInstance.py b/cura/SingleInstance.py index cf07b143c6..e6e48ea1df 100644 --- a/cura/SingleInstance.py +++ b/cura/SingleInstance.py @@ -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":