diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index f88f5b9dbd110..dbbaee22d9fd8 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -3415,7 +3415,9 @@ #define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens #define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus - //#define DISABLE_ENCODER // Disable the click encoder, if any + #if ANY(TFT_CLASSIC_UI, TFT_COLOR_UI) + //#define DISABLE_BACK_MENU_ITEM // Disable "back" menu item + #endif #define TOUCH_SCREEN_CALIBRATION diff --git a/Marlin/src/inc/Changes.h b/Marlin/src/inc/Changes.h index a4a5b24c228e0..1c17cf7a528b3 100644 --- a/Marlin/src/inc/Changes.h +++ b/Marlin/src/inc/Changes.h @@ -497,6 +497,8 @@ #error "DIGIPOT_I2C is now DIGIPOT_MCP4451 (or DIGIPOT_MCP4018)." #elif defined(TOUCH_BUTTONS) #error "TOUCH_BUTTONS is now TOUCH_SCREEN." +#elif defined(DISABLE_ENCODER) + #error "DISABLE_ENCODER is now DISABLE_BACK_MENU_ITEM." #elif defined(LCD_FULL_PIXEL_HEIGHT) || defined(LCD_FULL_PIXEL_WIDTH) #error "LCD_FULL_PIXEL_(WIDTH|HEIGHT) is deprecated and should be removed." #elif defined(FSMC_UPSCALE) diff --git a/Marlin/src/lcd/menu/menu_item.h b/Marlin/src/lcd/menu/menu_item.h index 47cd7d5cf3a53..24d0ef9c00ece 100644 --- a/Marlin/src/lcd/menu/menu_item.h +++ b/Marlin/src/lcd/menu/menu_item.h @@ -426,7 +426,7 @@ class MenuItem_bool : public MenuEditItemBase { // Predefined menu item types // -#if DISABLED(DISABLE_ENCODER) +#if DISABLED(DISABLE_BACK_MENU_ITEM) #define BACK_ITEM_F(FLABEL) MENU_ITEM_F(back, FLABEL) #define BACK_ITEM(LABEL) MENU_ITEM(back, LABEL) #else