diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 083c7c69852..18c7872b01b 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1154,6 +1154,9 @@ def event(self, event): """Handle Qt events""" if event.type() == QEvent.Type.FileOpen: + Logger.log("i", "FileOpen event received") + Logger.log("i", "File to open: {}", event.file()) + Logger.log("i", "Url to open: {}", event.url()) if self._plugins_loaded: self._openFile(event.file()) else: @@ -1764,6 +1767,8 @@ def _reloadMeshFinished(self, job) -> None: job._node.setMeshData(mesh_data) def _openFile(self, filename): + print("TEST") + print(filename) Logger.log("i", "Open file request %s", filename) self.readLocalFile(QUrl.fromLocalFile(filename)) diff --git a/cura/SingleInstance.py b/cura/SingleInstance.py index 61ab1204fe1..5f459369fe4 100644 --- a/cura/SingleInstance.py +++ b/cura/SingleInstance.py @@ -86,6 +86,8 @@ def __readCommands(self, connection: QLocalSocket) -> None: payload = json.loads(str(line, encoding = "ascii").strip()) command = payload["command"] + Logger.log("d", "Received command: %s", command) + # Command: Remove all models from the build plate. if command == "clear-all": self._application.callLater(lambda: self._application.deleteAll())