mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-16 23:51:18 +02:00
DeviceToolbar.cpp: fix resizing problem when changing hosts
This commit is contained in:
@@ -478,7 +478,7 @@ void DeviceToolBar::FillHostDevices()
|
||||
mInput->Append(MakeDeviceSourceString(&mInputDeviceSourceMaps[i]));
|
||||
}
|
||||
mInput->Enable(mInput->GetCount() ? true : false);
|
||||
mInput->SetSize(mInput->GetBestFittingSize());
|
||||
mInput->SetSize(mInput->GetEffectiveMinSize());
|
||||
// mInput->Layout();
|
||||
mOutput->Clear();
|
||||
for (i = 0; i < mOutputDeviceSourceMaps.size(); i++) {
|
||||
@@ -486,7 +486,11 @@ void DeviceToolBar::FillHostDevices()
|
||||
mOutput->Append(MakeDeviceSourceString(&mOutputDeviceSourceMaps[i]));
|
||||
}
|
||||
mOutput->Enable(mOutput->GetCount() ? true : false);
|
||||
mOutput->SetSize(mOutput->GetBestFittingSize());
|
||||
mOutput->SetSize(mOutput->GetEffectiveMinSize());
|
||||
|
||||
mInputChannels->SetSize(mInputChannels->GetEffectiveMinSize());
|
||||
|
||||
mHost->SetSize(mHost->GetEffectiveMinSize());
|
||||
// mOutput->Layout();
|
||||
|
||||
// make the device display selection reflect the prefs if they exist
|
||||
|
Reference in New Issue
Block a user