Handle "Controlled Folder Access" Windows crap

This commit is contained in:
Natsumi
2025-11-21 23:48:00 +11:00
parent e6f5ccb2fc
commit 2cd9fc20c8
4 changed files with 73 additions and 22 deletions

View File

@@ -33,6 +33,16 @@ class SQLiteService {
}
).catch(() => {});
}
if (e.message.includes('database is locked')) {
ElMessageBox.alert(
'Please close other applications that might be using the database file.',
'Database is locked',
{
confirmButtonText: 'OK',
type: 'warning'
}
).catch(() => {});
}
}
throw e;
}