2
0
mirror of https://github.com/frappe/books.git synced 2025-01-10 18:24:40 +00:00

fix: ask user to add .db extension

This commit is contained in:
18alantom 2021-11-09 16:44:05 +05:30
parent 65570d4210
commit 3afdb72ed3

View File

@ -26,7 +26,10 @@ export async function createNewDatabase() {
}
if (!filePath.endsWith('.db')) {
filePath = filePath + '.db';
showMessageDialog({
message: "Please select a filename ending with '.db'.",
});
return '';
}
if (fs.existsSync(filePath)) {