mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-05 14:49:25 +02:00
MixerToolBar.cpp: fix input slider enabled status to match AudioIO::mInputMixerWorks
This commit is contained in:
parent
d2d876d9a5
commit
dbf7942e1d
@ -119,6 +119,11 @@ void MixerToolBar::Populate()
|
||||
wxFocusEventHandler(MixerToolBar::OnFocus),
|
||||
NULL,
|
||||
this);
|
||||
// Show or hide the input slider based on whether it works
|
||||
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
||||
SetToolTips();
|
||||
|
||||
UpdateControls();
|
||||
|
||||
// Add a little space
|
||||
Add(2, -1);
|
||||
@ -204,6 +209,9 @@ void MixerToolBar::UpdateControls()
|
||||
float playbackVolume;
|
||||
int inputSource;
|
||||
|
||||
// Show or hide the input slider based on whether it works
|
||||
mInputSlider->Enable(gAudioIO->InputMixerWorks());
|
||||
|
||||
gAudioIO->GetMixer(&inputSource, &inputVolume, &playbackVolume);
|
||||
|
||||
if (mOutputSlider->Get() != playbackVolume) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user