1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-31 19:44:54 +02:00

Toolbars accessed by static Get() functions, not through AudacityProject

This commit is contained in:
Paul Licameli
2019-05-24 15:48:36 -04:00
parent 7bb71257ed
commit 3416b5bad6
35 changed files with 333 additions and 303 deletions

View File

@@ -300,10 +300,9 @@ void DeviceManager::Rescan()
// If this was not an initial scan update each device toolbar.
// Hosts may have disappeared or appeared so a complete repopulate is needed.
if (m_inited) {
DeviceToolBar *dt;
for (size_t i = 0; i < gAudacityProjects.size(); i++) {
dt = gAudacityProjects[i]->GetDeviceToolBar();
dt->RefillCombos();
auto &dt = DeviceToolBar::Get( *gAudacityProjects[i] );
dt.RefillCombos();
}
}
m_inited = true;