feat(backup): option to back up on every exit, not just once a day

New BackupSettings.EveryExit (keyBackupEveryExit) with a Settings → Backup
checkbox. When on, the three shutdown-backup gates (plannedShutdownSteps,
runBackupForShutdown, maybeShutdownBackup) bypass the HasBackupToday /
HasADIFBackupToday "already done today" check and always run, so a second
session's QSOs are captured instead of skipped until the next day. The dated
backup file for today is refreshed (overwritten) each exit; prior days are still
kept by rotation.
This commit is contained in:
2026-08-07 09:46:23 +02:00
parent 970127cc16
commit 5338ad0b29
5 changed files with 62 additions and 44 deletions
+2
View File
@@ -1894,6 +1894,7 @@ export namespace main {
folder: string;
rotation: number;
zip: boolean;
every_exit: boolean;
last_backup_at: string;
default_folder: string;
@@ -1907,6 +1908,7 @@ export namespace main {
this.folder = source["folder"];
this.rotation = source["rotation"];
this.zip = source["zip"];
this.every_exit = source["every_exit"];
this.last_backup_at = source["last_backup_at"];
this.default_folder = source["default_folder"];
}