Skip to content

Commit

Permalink
toast message when Chirpity thinks it is still analysing
Browse files Browse the repository at this point in the history
A clearer message when nocmig mode prevents detections being displayed
  • Loading branch information
Mattk70 committed Mar 22, 2024
1 parent 66de0de commit 58e5bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,8 @@ function postAnalyseMessage(args) {
SNR: config.filters.SNR,
circleClicked: args.fromDB
});
} else {
generateToast({message: 'An analysis is underway. Press <b>Esc</b> to cancel it before running a new analysis.'})
}
}

Expand Down
3 changes: 2 additions & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '<b>nocturnal</b>' : ''
sendResult(++index, `No ${nocmig} ${species} detections found using the ${STATE.list} list.`, true)
}
}
}
Expand Down

0 comments on commit 58e5bfe

Please sign in to comment.