1
0
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:
mchinen 2011-01-12 19:49:43 +00:00
parent c738b19c81
commit 26d18dc248

View File

@ -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)
{ {
@ -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(""));
} }
} }