Record time when last automatic backup was created

Closes #3474
This commit is contained in:
arkon
2023-10-29 12:03:46 -04:00
parent 298c49f3ab
commit 1aa5222c99
4 changed files with 16 additions and 2 deletions

View File

@ -13,4 +13,7 @@ class BackupPreferences(
fun numberOfBackups() = preferenceStore.getInt("backup_slots", 2)
fun backupInterval() = preferenceStore.getInt("backup_interval", 12)
// TODO: move this and other "app state" preferences elsewhere and exclude from backups
fun lastAutoBackupTimestamp() = preferenceStore.getLong("__APP_STATE_last_auto_backup_timestamp", 0L)
}