mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-09 21:22:05 +01:00
Send event, so that DeviceManager does not depend on DeviceToolBar...
... freeing it and DevicePrefs from cycles
This commit is contained in:
@@ -75,6 +75,8 @@ static int DeviceToolbarPrefsID()
|
||||
DeviceToolBar::DeviceToolBar()
|
||||
: ToolBar(DeviceBarID, _("Device"), wxT("Device"), true)
|
||||
{
|
||||
wxTheApp->Bind( EVT_RESCANNED_DEVICES,
|
||||
&DeviceToolBar::OnRescannedDevices, this );
|
||||
}
|
||||
|
||||
DeviceToolBar::~DeviceToolBar()
|
||||
@@ -628,6 +630,13 @@ void DeviceToolBar::FillHostDevices()
|
||||
// The setting of the Device is left up to OnChoice
|
||||
}
|
||||
|
||||
void DeviceToolBar::OnRescannedDevices( wxCommandEvent &event )
|
||||
{
|
||||
event.Skip();
|
||||
// Hosts may have disappeared or appeared so a complete repopulate is needed.
|
||||
RefillCombos();
|
||||
}
|
||||
|
||||
//return 1 if host changed, 0 otherwise.
|
||||
int DeviceToolBar::ChangeHost()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user