Merge pull request #3393 from gudnimg/add-menu-back-arrow-to-preheat-menu

Add menu back arrow to the Preheat menu
This commit is contained in:
Alex Voinea 2022-02-15 08:49:07 +01:00 committed by GitHub
commit 73406f53e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2384,7 +2384,6 @@ static void mFilamentItem_PVB()
void mFilamentBack()
{
menu_back();
if (eFilamentAction == FilamentAction::AutoLoad ||
eFilamentAction == FilamentAction::Preheat ||
eFilamentAction == FilamentAction::Lay1Cal)
@ -2398,14 +2397,10 @@ void lcd_generic_preheat_menu()
MENU_BEGIN();
if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
{
if (eFilamentAction == FilamentAction::Lay1Cal)
{
MENU_ITEM_FUNCTION_P(_T(MSG_BACK), mFilamentBack);
}
else
{
MENU_ITEM_FUNCTION_P(_T(MSG_MAIN), mFilamentBack);
}
ON_MENU_LEAVE(
mFilamentBack();
);
MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
}
if (farm_mode)
{