When switching monitors, we first destroy the current VolumeSlider and only then change its ID, and not vice versa (watch.js)

pull/4677/head
IgorA100 2026-03-04 15:23:11 +03:00 committed by GitHub
parent 4260cee91d
commit cf2819fcc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -900,8 +900,8 @@ function streamReStart(oldId, newId) {
if (volumeControls) volumeControls.id = 'volumeControls'+newId;
const volumeSlider = document.getElementById('volumeSlider'+oldId);
if (volumeSlider) {
volumeSlider.id = 'volumeSlider'+newId;
monitorStream.destroyVolumeSlider();
volumeSlider.id = 'volumeSlider'+newId;
}
const controlMute = document.getElementById('controlMute'+oldId);
if (controlMute) controlMute.id = 'controlMute'+newId;