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)
return False
archName = baseDir / self.tr(
"Backup from {0}"
).format(formatTimeStamp(time(), fileSafe=True) + ".zip")
timeStamp = formatTimeStamp(time(), fileSafe=True)
archName = baseDir / f"{cleanName} {timeStamp}.zip"
if self._storage.zipIt(archName, compression=2):
if doNotify:
self.mainGui.makeAlert(self.tr(