fix(backup): confirm legacy macOS destinations before manual runs

This commit is contained in:
C.J.S authored and GitHub committed 2026-09-08 00:14:08 +08:00
1 parent 889fa4f5d0
commit 0ac2d33188
8 files changed
+123 -2

No files matched your search

+1
View File
@@ -457,6 +457,7 @@ export const beginDatabaseBackupSnapshot = forward("beginDatabaseBackupSnapshot"
export const exportDatabaseSql = forward("exportDatabaseSql");
export const cancelDatabaseExport = forward("cancelDatabaseExport");
export const clearDatabaseExportCancellation = forward("clearDatabaseExportCancellation");
export const databaseExportDestinationNeedsConfirmation = forward("databaseExportDestinationNeedsConfirmation");
export const recordDatabaseExportDestination = forward("recordDatabaseExportDestination");
export const exportQueryResultCsv = forward("exportQueryResultCsv");
export const exportTableDataCsv = forward("exportTableDataCsv");
+4
View File
@@ -2480,6 +2480,10 @@ export async function clearDatabaseExportCancellation(_exportId: string): Promis
// The web exporter owns and clears its cancellation marker on completion.
}
export async function databaseExportDestinationNeedsConfirmation(_directory: string): Promise<boolean> {
throw new Error("Scheduled database backups are only available in the desktop app.");
}
export async function recordDatabaseExportDestination(_directory: string): Promise<void> {
throw new Error("Scheduled database backups are only available in the desktop app.");
}
+4
View File
@@ -5055,6 +5055,10 @@ export async function clearDatabaseExportCancellation(exportId: string): Promise
await invoke("clear_database_export_cancellation", { exportId });
}
export async function databaseExportDestinationNeedsConfirmation(directory: string): Promise<boolean> {
return invoke("database_export_destination_needs_confirmation", { directory });
}
export async function recordDatabaseExportDestination(directory: string): Promise<void> {
await invoke("record_database_export_destination", { directory });
}