Menu rework is done.

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

@ -663,18 +663,27 @@ void lcdml_menu_control(void)
#endif
encoderDir[ENC_L].ButtonShort(true);
inside_menu = false;
if (LCDML.FUNC_getID() == VOLUME_MENU_ID)
switch (LCDML.FUNC_getID())
{
if (last_menu < 0xff && inside_menu == true)
LCDML.OTHER_jumpToID(last_menu);
else
{
LCDML.OTHER_setCursorToID(last_cursor);
LCDML.DISP_update();
}
case VOLUME_MENU_ID:
if (last_menu < 0xff && inside_menu == true)
LCDML.OTHER_jumpToID(last_menu);
else
{
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