|
@@ -426,12 +426,15 @@ class MenuItem_bool : public MenuEditItemBase {
|
|
|
|
|
|
// Predefined menu item types //
|
|
|
|
|
|
-#if DISABLED(NO_BACK_MENU_ITEM)
|
|
|
- #define BACK_ITEM_F(FLABEL) MENU_ITEM_F(back, FLABEL)
|
|
|
- #define BACK_ITEM(LABEL) MENU_ITEM(back, LABEL)
|
|
|
-#else
|
|
|
+#if ENABLED(NO_BACK_MENU_ITEM)
|
|
|
#define BACK_ITEM_F(FLABEL) NOOP
|
|
|
#define BACK_ITEM(LABEL) NOOP
|
|
|
+#elif ENABLED(GENERIC_BACK_MENU_ITEM)
|
|
|
+ #define BACK_ITEM_F(V...) MENU_ITEM_F(back, GET_TEXT_F(MSG_BACK))
|
|
|
+ #define BACK_ITEM(V...) MENU_ITEM(back, MSG_BACK)
|
|
|
+#else
|
|
|
+ #define BACK_ITEM_F(FLABEL) MENU_ITEM_F(back, FLABEL)
|
|
|
+ #define BACK_ITEM(LABEL) MENU_ITEM(back, LABEL)
|
|
|
#endif
|
|
|
|
|
|
#define ACTION_ITEM_N_S_F(N, S, FLABEL, ACTION) MENU_ITEM_N_S_F(function, N, S, FLABEL, ACTION)
|