From 3afdb72ed36cca69b18ea9ccadb7e3353e0b665e Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 9 Nov 2021 16:44:05 +0530 Subject: [PATCH] fix: ask user to add .db extension --- src/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 9fcae637..4a166eb1 100644 --- a/src/utils.js +++ b/src/utils.js @@ -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)) {