Assure Gain control <==> Settings menu synchronization in case of mutually depdendent updates

This commit is contained in:
vsonnier
2017-11-18 22:38:05 +01:00
parent 6dc9b86855
commit e44af72b00
8 changed files with 108 additions and 12 deletions
+4 -3
View File
@@ -395,7 +395,8 @@ void SDRDevicesDialog::OnUseSelected( wxMouseEvent& event) {
wxGetApp().setDeviceArgs(settingArgs);
wxGetApp().setStreamArgs(streamArgs);
wxGetApp().setDevice(dev,0);
wxGetApp().notifyMainUIOfDeviceChange();
wxGetApp().notifyMainUIOfDeviceChange(true);
Refresh();
Close();
}
event.Skip();
@@ -570,13 +571,13 @@ void SDRDevicesDialog::OnPropGridChanged( wxPropertyGridEvent& event ) {
wxGetApp().getSDRThread()->writeSetting(rtp->first, settingValue);
}
wxGetApp().notifyMainUIOfDeviceChange();
wxGetApp().notifyMainUIOfDeviceChange(true);
return;
}
}
}
// general refresh.
wxGetApp().notifyMainUIOfDeviceChange();
wxGetApp().notifyMainUIOfDeviceChange(true);
}
void SDRDevicesDialog::OnPropGridFocus( wxFocusEvent& /* event */) {