fix: don't restore #output visibility in non-sensor modes

SensorDashboard.applyViewState was resetting output.style.display=''
in the else branch, undoing switchMode's modesWithVisuals hide for
waterfall, morse, ook, and every other mode with its own visuals.
Only touch #output when mode === 'sensor'.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
James Smith
2026-05-21 21:12:09 +01:00
parent 68cafe8cd0
commit fe222c0393
+1 -2
View File
@@ -172,8 +172,7 @@ const SensorDashboard = (function () {
if (output) output.style.display = isDash ? 'none' : '';
_updateToggle(isDash);
} else {
if (view) view.style.display = 'none';
if (output) output.style.display = '';
if (view) view.style.display = 'none';
}
}