mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
remove hasT toggling, fix clear handler drawSpectrum call
This commit is contained in:
parent
eb4d8002e5
commit
b8fe6005a2
1 changed files with 1 additions and 5 deletions
|
|
@ -1445,9 +1445,6 @@ function renderTracks() {
|
|||
});
|
||||
trackList.appendChild(div);
|
||||
});
|
||||
const hasT = tracks.length > 0 || !audio.paused;
|
||||
canvas.style.display = hasT ? 'block' : 'none';
|
||||
progressRow.style.display = hasT ? 'flex' : 'none';
|
||||
}
|
||||
function escHtml(s) {
|
||||
const d = document.createElement('div');
|
||||
|
|
@ -1680,8 +1677,7 @@ clearBtn.addEventListener('click', () => {
|
|||
anchorTrack = null;
|
||||
renderTracks();
|
||||
updateUI();
|
||||
drawSpectrum(spectrumCtx, new Uint8Array(1024), new Uint8Array(1024));
|
||||
vuDraw(new Uint8Array(1024), new Uint8Array(1024));
|
||||
drawSpectrum();
|
||||
});
|
||||
infoBtn.addEventListener('click', openTagEditor);
|
||||
tagSaveBtn.addEventListener('click', saveTagEditor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue