Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2021-01-08 15:44:23 +0300
committerRemco Burema <r.burema@ultimaker.com>2021-01-08 15:44:23 +0300
commitaa0a08500e959f29ae02dc31e901646e139407a0 (patch)
treebb5994e953129432b8dd8c363e484516d6c2149e
parent96c4d66029011df9f70ac54ba023d3be53ea67d2 (diff)
Temproray files shouldn't be in recent file list.
CURA-7864
-rwxr-xr-xcura/CuraApplication.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py
index ee347e7a4d..e1afb8a88f 100755
--- a/cura/CuraApplication.py
+++ b/cura/CuraApplication.py
@@ -1735,7 +1735,7 @@ class CuraApplication(QtApplication):
@pyqtSlot(QUrl, str)
@pyqtSlot(QUrl)
- def readLocalFile(self, file: QUrl, project_mode: Optional[str] = None):
+ def readLocalFile(self, file: QUrl, project_mode: Optional[str] = None, add_to_recent_files: str = True):
"""Open a local file
:param project_mode: How to handle project files. Either None(default): Follow user preference, "open_as_model"
@@ -1760,7 +1760,7 @@ class CuraApplication(QtApplication):
if is_project_file and project_mode == "open_as_project":
# open as project immediately without presenting a dialog
workspace_handler = self.getWorkspaceFileHandler()
- workspace_handler.readLocalFile(file)
+ workspace_handler.readLocalFile(file, add_to_recent_files = add_to_recent_files)
return
if is_project_file and project_mode == "always_ask":
@@ -1801,7 +1801,7 @@ class CuraApplication(QtApplication):
if extension in self._non_sliceable_extensions:
self.deleteAll(only_selectable = False)
- job = ReadMeshJob(f)
+ job = ReadMeshJob(f, add_to_recent_files = add_to_recent_files)
job.finished.connect(self._readMeshFinished)
job.start()