This commit is contained in:
Bertrand Songis
2019-09-09 14:18:50 +02:00
parent 63a1a5d1a9
commit e8c7229ff2
7 changed files with 14 additions and 17 deletions
+3 -4
View File
@@ -291,7 +291,7 @@ void guiMain(event_t evt)
if (!refreshNeeded) {
DEBUG_TIMER_START(debugTimerMenus);
while (1) {
while (true) {
// normal GUI from menus
const char * warn = warningText;
uint8_t menu = popupMenuItemsCount;
@@ -315,7 +315,7 @@ void guiMain(event_t evt)
if (result) {
TRACE("popupMenuHandler(%s)", result);
auto handler = popupMenuHandler;
popupMenuHandler = nullptr;
CLEAR_POPUP();
handler(result);
if (menuEvent == 0) {
evt = EVT_REFRESH;
@@ -391,7 +391,6 @@ void handleGui(event_t event) {
}
}
menuHandlers[menuLevel](event);
// todo drawStatusLine(); here???
}
else
#endif
@@ -456,7 +455,7 @@ void guiMain(event_t evt)
if (result) {
TRACE("popupMenuHandler(%s)", result);
auto handler = popupMenuHandler;
popupMenuHandler = nullptr;
CLEAR_POPUP();
handler(result);
}
}