Only make a copy of the project file when not autosaving

This commit is contained in:
Veronica K. B. Olsen committed 2019-11-02 14:11:50 +01:00
1 parent 5288535398
commit c0aca6a069
2 files changed
+6 -5

No files matched your search

+3 -2
View File
@@ -280,7 +280,7 @@ class NWProject():
return True
def saveProject(self):
def saveProject(self, isAuto=False):
if self.projPath is None:
self.makeAlert("Project path not set, cannot save.", nwAlert.ERROR)
@@ -296,7 +296,8 @@ class NWProject():
logger.debug("Saving project: %s" % self.projPath)
# Save a copy of the current file, just in case
self._maintainPrevious()
if not isAuto:
self._maintainPrevious()
# Root element and project details
logger.debug("Writing project meta")