Hide audio source type selector — type is determined by add button context

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 13:57:41 +03:00
parent bae2166bc2
commit 4806f5020c
2 changed files with 3 additions and 14 deletions

View File

@@ -110,7 +110,7 @@ import {
// Layer 5: audio sources // Layer 5: audio sources
import { import {
showAudioSourceModal, closeAudioSourceModal, saveAudioSource, showAudioSourceModal, closeAudioSourceModal, saveAudioSource,
editAudioSource, cloneAudioSource, deleteAudioSource, onAudioSourceTypeChange, editAudioSource, cloneAudioSource, deleteAudioSource,
} from './features/audio-sources.js'; } from './features/audio-sources.js';
// Layer 5: value sources // Layer 5: value sources
@@ -343,7 +343,6 @@ Object.assign(window, {
editAudioSource, editAudioSource,
cloneAudioSource, cloneAudioSource,
deleteAudioSource, deleteAudioSource,
onAudioSourceTypeChange,
// value sources // value sources
showValueSourceModal, showValueSourceModal,

View File

@@ -21,18 +21,8 @@
<input type="text" id="audio-source-name" data-i18n-placeholder="audio_source.name.placeholder" placeholder="System Audio" required> <input type="text" id="audio-source-name" data-i18n-placeholder="audio_source.name.placeholder" placeholder="System Audio" required>
</div> </div>
<!-- Type --> <!-- Type (hidden — determined by which add button was clicked) -->
<div class="form-group"> <input type="hidden" id="audio-source-type" value="multichannel">
<div class="label-row">
<label for="audio-source-type" data-i18n="audio_source.type">Type:</label>
<button type="button" class="hint-toggle" onclick="toggleHint(this)" title="?" data-i18n-aria-label="aria.hint">?</button>
</div>
<small class="input-hint" style="display:none" data-i18n="audio_source.type.hint">Multichannel captures all channels from a physical audio device. Mono extracts a single channel from a multichannel source.</small>
<select id="audio-source-type" onchange="onAudioSourceTypeChange()">
<option value="multichannel" data-i18n="audio_source.type.multichannel">Multichannel</option>
<option value="mono" data-i18n="audio_source.type.mono">Mono</option>
</select>
</div>
<!-- Multichannel fields --> <!-- Multichannel fields -->
<div id="audio-source-multichannel-section"> <div id="audio-source-multichannel-section">