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