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:
commit
73406f53e9
@ -2384,7 +2384,6 @@ static void mFilamentItem_PVB()
|
|||||||
|
|
||||||
void mFilamentBack()
|
void mFilamentBack()
|
||||||
{
|
{
|
||||||
menu_back();
|
|
||||||
if (eFilamentAction == FilamentAction::AutoLoad ||
|
if (eFilamentAction == FilamentAction::AutoLoad ||
|
||||||
eFilamentAction == FilamentAction::Preheat ||
|
eFilamentAction == FilamentAction::Preheat ||
|
||||||
eFilamentAction == FilamentAction::Lay1Cal)
|
eFilamentAction == FilamentAction::Lay1Cal)
|
||||||
@ -2398,14 +2397,10 @@ void lcd_generic_preheat_menu()
|
|||||||
MENU_BEGIN();
|
MENU_BEGIN();
|
||||||
if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
|
if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
|
||||||
{
|
{
|
||||||
if (eFilamentAction == FilamentAction::Lay1Cal)
|
ON_MENU_LEAVE(
|
||||||
{
|
mFilamentBack();
|
||||||
MENU_ITEM_FUNCTION_P(_T(MSG_BACK), mFilamentBack);
|
);
|
||||||
}
|
MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
|
||||||
else
|
|
||||||
{
|
|
||||||
MENU_ITEM_FUNCTION_P(_T(MSG_MAIN), mFilamentBack);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (farm_mode)
|
if (farm_mode)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user