fix: Radio Settings/SYS module version info lockup (#1901)

Fix SYS>VERSION>Modules / RX version - and pressing  "PAGE>" or "PAGE<"
and then press enter to EXIT, could result on EM.
This commit is contained in:
Peter Feerick
2022-04-27 11:08:07 +10:00
committed by GitHub
parent 5957745518
commit 3d89f73394
+10
View File
@@ -173,6 +173,16 @@ class versionDialog: public Dialog
Dialog::checkEvents();
}
#if defined(HARDWARE_KEYS)
void onEvent(event_t event) override
{
if (event == EVT_KEY_BREAK(KEY_EXIT) ||
event == EVT_KEY_BREAK(KEY_ENTER)) {
deleteLater();
}
}
#endif
protected:
rect_t rect;
TextButton * exitButton;