mirror of
https://github.com/frappe/books.git
synced 2025-01-11 02:36:14 +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')) {
|
||||
filePath = filePath + '.db';
|
||||
showMessageDialog({
|
||||
message: "Please select a filename ending with '.db'.",
|
||||
});
|
||||
return '';
|
||||
}
|
||||
|
||||
if (fs.existsSync(filePath)) {
|
||||
|
Loading…
Reference in New Issue
Block a user