GPS SIMULATOR EXIT ON PLAY FIX

Now, if you exit the GPS SIMULATOR while transmitting, it will properly stop the radio and won't crash, exiting as expected.
This commit is contained in:
euquiq 2020-06-16 02:18:29 -03:00
parent 704c5de249
commit 77b56810e8

View File

@ -234,6 +234,8 @@ GpsSimAppView::~GpsSimAppView() {
void GpsSimAppView::on_hide() {
// TODO: Terrible kludge because widget system doesn't notify Waterfall that
// it's being shown or hidden.
if( is_active() )
stop(false);
waterfall.on_hide();
View::on_hide();
}