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
+5 -1
View File
@@ -177,6 +177,10 @@ class GuiMainMenu(QMenuBar):
self.theParent.docEditor.revealLocation()
return True
def _doBackup(self):
self.theProject.zipIt(True)
return True
##
# Menu Builders
##
@@ -703,7 +707,7 @@ class GuiMainMenu(QMenuBar):
# Tools > Backup
self.aBackupProject = QAction("Backup Project", self)
self.aBackupProject.setStatusTip("Backup Project")
self.aBackupProject.triggered.connect(self.theParent.backupProject)
self.aBackupProject.triggered.connect(self._doBackup)
self.toolsMenu.addAction(self.aBackupProject)
# Tools > Settings