mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Merge pull request #4251 from Ultimaker/CURA-5645_no_write_gcode_to_recent_files
CURA-5645 Do not add saved gcodes to recent files list
This commit is contained in:
commit
0d293ddced
4 changed files with 7 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,6 +15,7 @@ LC_MESSAGES
|
||||||
.cache
|
.cache
|
||||||
*.qmlc
|
*.qmlc
|
||||||
.mypy_cache
|
.mypy_cache
|
||||||
|
.pytest_cache
|
||||||
|
|
||||||
#MacOS
|
#MacOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
|
@ -17,6 +17,10 @@ catalog = i18nCatalog("cura")
|
||||||
#
|
#
|
||||||
# If you're zipping g-code, you might as well use gzip!
|
# If you're zipping g-code, you might as well use gzip!
|
||||||
class GCodeGzWriter(MeshWriter):
|
class GCodeGzWriter(MeshWriter):
|
||||||
|
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__(add_to_recent_files = False)
|
||||||
|
|
||||||
## Writes the gzipped g-code to a stream.
|
## Writes the gzipped g-code to a stream.
|
||||||
#
|
#
|
||||||
# Note that even though the function accepts a collection of nodes, the
|
# Note that even though the function accepts a collection of nodes, the
|
||||||
|
|
|
@ -47,7 +47,7 @@ class GCodeWriter(MeshWriter):
|
||||||
_setting_keyword = ";SETTING_"
|
_setting_keyword = ";SETTING_"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__(add_to_recent_files = False)
|
||||||
|
|
||||||
self._application = Application.getInstance()
|
self._application = Application.getInstance()
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
class UFPWriter(MeshWriter):
|
class UFPWriter(MeshWriter):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__(add_to_recent_files = False)
|
||||||
self._snapshot = None
|
self._snapshot = None
|
||||||
Application.getInstance().getOutputDeviceManager().writeStarted.connect(self._createSnapshot)
|
Application.getInstance().getOutputDeviceManager().writeStarted.connect(self._createSnapshot)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue