|
|
|
@ -249,7 +249,14 @@ void menu_main() {
|
|
|
|
|
#if PIN_EXISTS(SD_DETECT)
|
|
|
|
|
GCODES_ITEM(MSG_CHANGE_MEDIA, PSTR("M21")); // M21 Change Media
|
|
|
|
|
#else // - or -
|
|
|
|
|
GCODES_ITEM(MSG_RELEASE_MEDIA, PSTR("M22")); // M22 Release Media
|
|
|
|
|
ACTION_ITEM(MSG_RELEASE_MEDIA, []{ // M22 Release Media
|
|
|
|
|
queue.inject(PSTR("M22"));
|
|
|
|
|
#if ENABLED(TFT_COLOR_UI)
|
|
|
|
|
// Menu display issue on item removal with multi language selection menu
|
|
|
|
|
if (encoderTopLine > 0) encoderTopLine--;
|
|
|
|
|
ui.refresh(LCDVIEW_CALL_REDRAW_NEXT);
|
|
|
|
|
#endif
|
|
|
|
|
});
|
|
|
|
|
#endif
|
|
|
|
|
SUBMENU(MSG_MEDIA_MENU, MEDIA_MENU_GATEWAY); // Media Menu (or Password First)
|
|
|
|
|
}
|
|
|
|
|