From 58e5bfe2a96aa190933f1524c3e3eca4d880e8d9 Mon Sep 17 00:00:00 2001 From: Mattk70 Date: Fri, 22 Mar 2024 19:03:23 +0000 Subject: [PATCH] toast message when Chirpity thinks it is still analysing A clearer message when nocmig mode prevents detections being displayed --- js/ui.js | 2 ++ js/worker.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui.js b/js/ui.js index 9e8725b3..44cb0d4a 100644 --- a/js/ui.js +++ b/js/ui.js @@ -932,6 +932,8 @@ function postAnalyseMessage(args) { SNR: config.filters.SNR, circleClicked: args.fromDB }); + } else { + generateToast({message: 'An analysis is underway. Press Esc to cancel it before running a new analysis.'}) } } diff --git a/js/worker.js b/js/worker.js index 4111ac1f..b88bfc2e 100644 --- a/js/worker.js +++ b/js/worker.js @@ -2441,7 +2441,8 @@ const getResults = async ({ sendResult(++index, 'No detections found in the selection', true) } else { species = species || ''; - sendResult(++index, `No ${species} detections found using the ${STATE.list} list.`, true) + const nocmig = STATE.detect.nocmig ? 'nocturnal' : '' + sendResult(++index, `No ${nocmig} ${species} detections found using the ${STATE.list} list.`, true) } } }