Moved the backup function to the project class since it was only one function anyway

This commit is contained in:
Veronica K. B. Olsen
2020-05-08 18:19:09 +02:00
parent a39b28332a
commit 3d910041cd
5 changed files with 75 additions and 111 deletions
+2 -9
View File
@@ -45,7 +45,7 @@ from nw.gui import (
GuiConfigEditor, GuiProjectEditor, GuiItemEditor, GuiProjectOutline,
GuiSessionLogView, GuiDocMerge, GuiDocSplit, GuiProjectLoad
)
from nw.project import NWProject, NWDoc, NWIndex, NWBackup
from nw.project import NWProject, NWDoc, NWIndex
from nw.tools import countWords
from nw.constants import nwFiles, nwItemType, nwAlert
@@ -333,7 +333,7 @@ class GuiMain(QMainWindow):
if msgRes != QMessageBox.Yes:
doBackup = False
if doBackup:
self.backupProject()
self.theProject.zipIt(False)
else:
saveOK = True
@@ -450,13 +450,6 @@ class GuiMain(QMainWindow):
return True
def backupProject(self):
"""Trigger the project backup process.
"""
theBackup = NWBackup(self, self.theProject)
theBackup.zipIt()
return True
##
# Document Actions
##