Menu rework is done.

pull/32/head
Holger Wirtz 5 years ago
parent 4409e50503
commit fddbe63028
  1. 29
      UI.hpp

@ -663,18 +663,27 @@ void lcdml_menu_control(void)
#endif #endif
encoderDir[ENC_L].ButtonShort(true); encoderDir[ENC_L].ButtonShort(true);
inside_menu = false; inside_menu = false;
if (LCDML.FUNC_getID() == VOLUME_MENU_ID) switch (LCDML.FUNC_getID())
{ {
if (last_menu < 0xff && inside_menu == true) case VOLUME_MENU_ID:
LCDML.OTHER_jumpToID(last_menu); if (last_menu < 0xff && inside_menu == true)
else LCDML.OTHER_jumpToID(last_menu);
{ else
LCDML.OTHER_setCursorToID(last_cursor); {
LCDML.DISP_update(); LCDML.OTHER_setCursorToID(last_cursor);
} LCDML.DISP_update();
}
break;
case PATCH_MENU_ID1:
#if defined(PATCH_MENU_ID2)
case PATCH_MENU_ID2:
#endif
if (last_cursor == 0)
LCDML.MENU_goRoot();
break;
default:
LCDML.BT_quit();
} }
else
LCDML.BT_quit();
} }
} }
} }

Loading…
Cancel
Save