mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 17:41:15 +02:00
bug 11 followup: DeviceToolbar.cpp: fix num channels redraw - was causing some platforms to display the wxChoice combo box incorrectly
This commit is contained in:
parent
c738b19c81
commit
26d18dc248
@ -573,6 +573,13 @@ void DeviceToolBar::FillInputChannels()
|
|||||||
}
|
}
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
mInputChannels->Enable(false);
|
mInputChannels->Enable(false);
|
||||||
|
|
||||||
|
// Resize if necessary
|
||||||
|
mInputChannels->SetSize(mInputChannels->GetEffectiveMinSize());
|
||||||
|
|
||||||
|
Layout();
|
||||||
|
this->Refresh();
|
||||||
|
Update();
|
||||||
}
|
}
|
||||||
void DeviceToolBar::SetDevices(DeviceSourceMap *in, DeviceSourceMap *out)
|
void DeviceToolBar::SetDevices(DeviceSourceMap *in, DeviceSourceMap *out)
|
||||||
{
|
{
|
||||||
@ -580,7 +587,7 @@ void DeviceToolBar::SetDevices(DeviceSourceMap *in, DeviceSourceMap *out)
|
|||||||
gPrefs->Write(wxT("/AudioIO/RecordingDevice"), in->deviceString);
|
gPrefs->Write(wxT("/AudioIO/RecordingDevice"), in->deviceString);
|
||||||
gPrefs->Write(wxT("/AudioIO/RecordingSourceIndex"), in->sourceIndex);
|
gPrefs->Write(wxT("/AudioIO/RecordingSourceIndex"), in->sourceIndex);
|
||||||
if (in->sourceIndex >= 0) {
|
if (in->sourceIndex >= 0) {
|
||||||
gPrefs->Write(wxT("/AudioIO/RecordingSource"),in->sourceString);
|
gPrefs->Write(wxT("/AudioIO/RecordingSource"), in->sourceString);
|
||||||
} else
|
} else
|
||||||
gPrefs->Write(wxT("/AudioIO/RecordingSource"), wxT(""));
|
gPrefs->Write(wxT("/AudioIO/RecordingSource"), wxT(""));
|
||||||
FillInputChannels();
|
FillInputChannels();
|
||||||
@ -591,7 +598,7 @@ void DeviceToolBar::SetDevices(DeviceSourceMap *in, DeviceSourceMap *out)
|
|||||||
if (out->sourceIndex >= 0) {
|
if (out->sourceIndex >= 0) {
|
||||||
gPrefs->Write(wxT("/AudioIO/PlaybackSource"), out->sourceString);
|
gPrefs->Write(wxT("/AudioIO/PlaybackSource"), out->sourceString);
|
||||||
} else
|
} else
|
||||||
gPrefs->Write(wxT("/AudioIO/RecordingSource"), wxT(""));
|
gPrefs->Write(wxT("/AudioIO/PlaybackSource"), wxT(""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user