mirror of
https://github.com/frappe/books.git
synced 2025-01-25 16:18:33 +00:00
fix: ask user to add .db extension
This commit is contained in:
parent
65570d4210
commit
3afdb72ed3
@ -26,7 +26,10 @@ export async function createNewDatabase() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!filePath.endsWith('.db')) {
|
if (!filePath.endsWith('.db')) {
|
||||||
filePath = filePath + '.db';
|
showMessageDialog({
|
||||||
|
message: "Please select a filename ending with '.db'.",
|
||||||
|
});
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fs.existsSync(filePath)) {
|
if (fs.existsSync(filePath)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user