♻️ DISABLE_ENCODER => NO_BACK_MENU_ITEM (#27180)
This commit is contained in:
parent
7bc6261d2a
commit
ee8dada752
@ -3415,7 +3415,9 @@
|
|||||||
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
||||||
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
#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 NO_BACK_MENU_ITEM // Don't display a top menu item to go back to the parent menu
|
||||||
|
#endif
|
||||||
|
|
||||||
#define TOUCH_SCREEN_CALIBRATION
|
#define TOUCH_SCREEN_CALIBRATION
|
||||||
|
|
||||||
|
@ -497,6 +497,8 @@
|
|||||||
#error "DIGIPOT_I2C is now DIGIPOT_MCP4451 (or DIGIPOT_MCP4018)."
|
#error "DIGIPOT_I2C is now DIGIPOT_MCP4451 (or DIGIPOT_MCP4018)."
|
||||||
#elif defined(TOUCH_BUTTONS)
|
#elif defined(TOUCH_BUTTONS)
|
||||||
#error "TOUCH_BUTTONS is now TOUCH_SCREEN."
|
#error "TOUCH_BUTTONS is now TOUCH_SCREEN."
|
||||||
|
#elif defined(DISABLE_ENCODER)
|
||||||
|
#error "DISABLE_ENCODER is now NO_BACK_MENU_ITEM."
|
||||||
#elif defined(LCD_FULL_PIXEL_HEIGHT) || defined(LCD_FULL_PIXEL_WIDTH)
|
#elif defined(LCD_FULL_PIXEL_HEIGHT) || defined(LCD_FULL_PIXEL_WIDTH)
|
||||||
#error "LCD_FULL_PIXEL_(WIDTH|HEIGHT) is deprecated and should be removed."
|
#error "LCD_FULL_PIXEL_(WIDTH|HEIGHT) is deprecated and should be removed."
|
||||||
#elif defined(FSMC_UPSCALE)
|
#elif defined(FSMC_UPSCALE)
|
||||||
|
@ -426,7 +426,7 @@ class MenuItem_bool : public MenuEditItemBase {
|
|||||||
|
|
||||||
// Predefined menu item types //
|
// Predefined menu item types //
|
||||||
|
|
||||||
#if DISABLED(DISABLE_ENCODER)
|
#if DISABLED(NO_BACK_MENU_ITEM)
|
||||||
#define BACK_ITEM_F(FLABEL) MENU_ITEM_F(back, FLABEL)
|
#define BACK_ITEM_F(FLABEL) MENU_ITEM_F(back, FLABEL)
|
||||||
#define BACK_ITEM(LABEL) MENU_ITEM(back, LABEL)
|
#define BACK_ITEM(LABEL) MENU_ITEM(back, LABEL)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user