Browse Source

Do not add saved gcodes to recent files list

Lipu Fei 6 years ago
parent
commit
1079a9be2c
2 changed files with 5 additions and 1 deletions
  1. 4 0
      plugins/GCodeGzWriter/GCodeGzWriter.py
  2. 1 1
      plugins/GCodeWriter/GCodeWriter.py

+ 4 - 0
plugins/GCodeGzWriter/GCodeGzWriter.py

@@ -17,6 +17,10 @@ catalog = i18nCatalog("cura")
 #
 #   If you're zipping g-code, you might as well use gzip!
 class GCodeGzWriter(MeshWriter):
+
+    def __init__(self) -> None:
+        super().__init__(add_to_recent_files = False)
+
     ##  Writes the gzipped g-code to a stream.
     #
     #   Note that even though the function accepts a collection of nodes, the

+ 1 - 1
plugins/GCodeWriter/GCodeWriter.py

@@ -47,7 +47,7 @@ class GCodeWriter(MeshWriter):
     _setting_keyword = ";SETTING_"
 
     def __init__(self):
-        super().__init__()
+        super().__init__(add_to_recent_files = False)
 
         self._application = Application.getInstance()