mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Don't add temporary files in the recent files list if F5 is pressed
CURA-7864
This commit is contained in:
parent
13d45e3a55
commit
3282ad7a41
1 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import tempfile
|
||||||
import time
|
import time
|
||||||
from typing import cast, TYPE_CHECKING, Optional, Callable, List, Any, Dict
|
from typing import cast, TYPE_CHECKING, Optional, Callable, List, Any, Dict
|
||||||
|
|
||||||
|
|
@ -1477,7 +1478,8 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
for file_name, nodes in objects_in_filename.items():
|
for file_name, nodes in objects_in_filename.items():
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
job = ReadMeshJob(file_name)
|
file_path = os.path.normpath(os.path.dirname(file_name))
|
||||||
|
job = ReadMeshJob(file_name, add_to_recent_files = file_path != tempfile.gettempdir()) # Don't add temp files to the recent files list
|
||||||
job._node = node # type: ignore
|
job._node = node # type: ignore
|
||||||
job.finished.connect(self._reloadMeshFinished)
|
job.finished.connect(self._reloadMeshFinished)
|
||||||
if has_merged_nodes:
|
if has_merged_nodes:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue