1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

[Exit] in a popup menu now calls onPopupHandler(nullptr)

This commit is contained in:
Bertrand Songis 2019-03-08 15:30:47 +01:00
parent f47b1065eb
commit 096fac2f27
21 changed files with 88 additions and 77 deletions

View file

@ -313,7 +313,7 @@ void guiMain(event_t evt)
if (warn) DISPLAY_WARNING(evt);
if (menu) {
const char * result = runPopupMenu(evt);
if (result) {
if (popupMenuItemsCount == 0) {
popupMenuHandler(result);
if (menuEvent == 0) {
evt = EVT_REFRESH;
@ -451,7 +451,7 @@ void guiMain(event_t evt)
inPopupMenu = true;
}
const char * result = runPopupMenu(evt);
if (result) {
if (popupMenuItemsCount == 0) {
TRACE("popupMenuHandler(%s)", result);
popupMenuHandler(result);
}