mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-25 17:25:10 +03:00
[Exit] in a popup menu now calls onPopupHandler(nullptr)
This commit is contained in:
parent
f47b1065eb
commit
096fac2f27
21 changed files with 88 additions and 77 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue