Skip to content

Commit

Permalink
Records > Export audio clips removed from menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Oct 7, 2024
1 parent cc295fd commit 4b09d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
3 changes: 0 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,6 @@ <h5>Saved Records</h5>
<span class="material-symbols-outlined">archive</span> Save to Archive
<span class="shortcut float-end">Ctrl+S</span>
</li>
<li class="dropdown-item" id="export2audio">
<span class="material-symbols-outlined">music_note</span> Export Audio Clips
</li>
<li class="dropdown-divider"></li>
<li class="dropdown-item disabled" id="charts">
<span class="material-symbols-outlined">assessment</span> View charts
Expand Down
14 changes: 3 additions & 11 deletions js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ async function onOpenFiles(args) {
// Reset analysis status
STATE.analysisDone = false;
await loadAudioFile({ filePath: fileList[0] });
disableMenuItem(['analyseSelection', 'analyse', 'analyseAll', 'reanalyse', 'reanalyseAll', 'export2audio', 'save2db'])
disableMenuItem(['analyseSelection', 'analyse', 'analyseAll', 'reanalyse', 'reanalyseAll', 'save2db'])
// Clear unsaved records warning
window.electron.unsavedRecords(false);
document.getElementById('unsaved-icon').classList.add('d-none');
Expand Down Expand Up @@ -2969,13 +2969,6 @@ function centreSpec(){
const gotoForm = document.getElementById('gotoForm')
gotoForm.addEventListener('submit', gotoTime)

// Electron Message handling
//const warmupText = document.getElementById('warmup');

// function displayWarmUpMessage() {
// disableMenuItem(['analyse', 'analyseAll', 'reanalyse', 'reanalyseAll', 'analyseSelection', 'export2audio', 'save2db']);
// warmupText.classList.remove('d-none');
// }

function onModelReady(args) {
modelReady = true;
Expand Down Expand Up @@ -3224,7 +3217,7 @@ function centreSpec(){
// Why do we do audacity labels here?
AUDACITY_LABELS = audacityLabels;
if (! isEmptyObject(AUDACITY_LABELS)) {
enableMenuItem(['saveLabels', 'saveCSV', 'save-eBird', 'save-Raven', 'save2db', 'export2audio']);
enableMenuItem(['saveLabels', 'saveCSV', 'save-eBird', 'save-Raven', 'save2db']);
} else {
disableMenuItem(['saveLabels', 'saveCSV', 'save-eBird', 'save-Raven']);
}
Expand Down Expand Up @@ -4415,7 +4408,6 @@ DOM.gain.addEventListener('input', () => {
worker.postMessage({ action: 'save2db', file: currentFile });
if (config.archive.auto) document.getElementById('compress-and-organise').click();
break }
case 'export2audio': { batchExportAudio(); break }
case 'dataset': { worker.postMessage({ action: 'create-dataset', species: isSpeciesViewFiltered(true) }); break }

case 'analyse': {postAnalyseMessage({ filesInScope: [currentFile] }); break }
Expand Down Expand Up @@ -5483,7 +5475,7 @@ function renderComparisons(lists, cname){
compareDiv.tabIndex = -1;
compareDiv.setAttribute('aria-labelledby', "compareModalLabel");
compareDiv.setAttribute('aria-hidden', "true");
compareDiv.setAttribute( "data-bs-backdrop", "static")
compareDiv.setAttribute( "data-bs-backdrop", "static");
const compareHTML = `
<div class="modal-dialog modal-lg modal-dialog-bottom w-100">
<div class="modal-content">
Expand Down

0 comments on commit 4b09d3a

Please sign in to comment.