| 2098 | } |
| 2099 | |
| 2100 | bool AppFrame::actionOnMenuSDRStartStop(wxCommandEvent &event) { |
| 2101 | if (event.GetId() == wxID_SDR_START_STOP) { |
| 2102 | if (!wxGetApp().getSDRThread()->isTerminated()) { |
| 2103 | wxGetApp().stopDevice(true, 2000); |
| 2104 | } else { |
| 2105 | SDRDeviceInfo *dev = wxGetApp().getDevice(); |
| 2106 | if (dev != nullptr) { |
| 2107 | wxGetApp().setDevice(dev, 0); |
| 2108 | } |
| 2109 | } |
| 2110 | return true; |
| 2111 | } |
| 2112 | return false; |
| 2113 | } |
| 2114 | |
| 2115 | void AppFrame::OnClose(wxCloseEvent& event) { |
| 2116 | wxGetApp().closeDeviceSelector(); |
nothing calls this directly
no test coverage detected