Add TURBO_BACK_MENU_ITEM option (#14991)

This commit is contained in:
Scott Lahteine
2019-08-20 19:37:03 -05:00
committed by GitHub
parent 0cc524b84f
commit 5e777601f3
102 changed files with 323 additions and 4 deletions

View File

@ -447,7 +447,12 @@ public:
static screenFunc_t currentScreen;
static void goto_screen(const screenFunc_t screen, const uint16_t encoder=0, const uint8_t top=0, const uint8_t items=0);
static void save_previous_screen();
static void goto_previous_screen();
static void goto_previous_screen(
#if ENABLED(TURBO_BACK_MENU_ITEM)
const bool is_back=false
#endif
);
static void return_to_status();
static inline bool on_status_screen() { return currentScreen == status_screen; }
static inline void run_current_screen() { (*currentScreen)(); }