Add project name to backup file (#1476)

This commit is contained in:
Veronica Berglyd Olsen
2023-07-27 00:08:26 +02:00
parent b837becc58
commit d81a90add3
+2 -3
View File
@@ -446,9 +446,8 @@ class NWProject(QObject):
), nwAlert.ERROR, exception=exc) ), nwAlert.ERROR, exception=exc)
return False return False
archName = baseDir / self.tr( timeStamp = formatTimeStamp(time(), fileSafe=True)
"Backup from {0}" archName = baseDir / f"{cleanName} {timeStamp}.zip"
).format(formatTimeStamp(time(), fileSafe=True) + ".zip")
if self._storage.zipIt(archName, compression=2): if self._storage.zipIt(archName, compression=2):
if doNotify: if doNotify:
self.mainGui.makeAlert(self.tr( self.mainGui.makeAlert(self.tr(