mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-01 14:43:48 +01:00
DeviceToolBar.cpp: better redraw on change host.
Also fixes an issue where the combo boxes on other project's device toolbars wouldn't resize when the active projects device toolbar changed the host.
This commit is contained in:
@@ -482,6 +482,9 @@ void DeviceToolBar::UpdatePrefs()
|
||||
|
||||
// Give base class a chance
|
||||
ToolBar::UpdatePrefs();
|
||||
|
||||
Layout();
|
||||
Refresh();
|
||||
}
|
||||
|
||||
|
||||
@@ -704,10 +707,7 @@ int DeviceToolBar::ChangeHost()
|
||||
gPrefs->Write(wxT("/AudioIO/Host"), newHost);
|
||||
// populate the devices
|
||||
FillHostDevices();
|
||||
// make the device display selection reflect the prefs if they exist
|
||||
UpdatePrefs();
|
||||
Refresh();
|
||||
Layout();
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -850,7 +850,7 @@ void DeviceToolBar::OnChoice(wxCommandEvent &event)
|
||||
gAudioIO->HandleDeviceChange();
|
||||
}
|
||||
|
||||
// Update the other project's DeviceToolBar.
|
||||
// Update all projects' DeviceToolBar.
|
||||
for (size_t i = 0; i < gAudacityProjects.GetCount(); i++) {
|
||||
gAudacityProjects[i]->GetDeviceToolBar()->UpdatePrefs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user