1
0
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:
mchinen
2011-02-12 18:25:06 +00:00
parent 0d6197b2a8
commit 8c805c03dd

View File

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