From e25b4c2565d45194e3032f2295857ffdc0771c3a Mon Sep 17 00:00:00 2001 From: TheIceCreamTroll Date: Tue, 30 Nov 2021 01:50:07 -0500 Subject: [PATCH] Updated error message for trying to delete without an active textbox --- src/listmaker.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/listmaker.js b/src/listmaker.js index e031d7e..74bf5f9 100644 --- a/src/listmaker.js +++ b/src/listmaker.js @@ -66,6 +66,10 @@ function loadFileList(directoryPath) { function deleteRow(filename) { try { + if (filename == undefined) { + UpdateMessageBar("Nothing was selected so nothing was deleted."); + return; + } fs.unlinkSync(path.join(directoryPath, filename)); loadFileList(directoryPath); saveTranscriptionAsText();