Fix Change Filament menu actions (#20565)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
9eaa69874a
commit
a3fac744c7
@ -90,8 +90,10 @@ void _menu_temp_filament_op(const PauseMode mode, const int8_t extruder) {
|
|||||||
if (LCD_HEIGHT >= 4) STATIC_ITEM_P(change_filament_header(mode), SS_DEFAULT|SS_INVERT);
|
if (LCD_HEIGHT >= 4) STATIC_ITEM_P(change_filament_header(mode), SS_DEFAULT|SS_INVERT);
|
||||||
BACK_ITEM(MSG_BACK);
|
BACK_ITEM(MSG_BACK);
|
||||||
#if PREHEAT_COUNT
|
#if PREHEAT_COUNT
|
||||||
|
const int8_t old_index = MenuItemBase::itemIndex;
|
||||||
LOOP_L_N(m, PREHEAT_COUNT)
|
LOOP_L_N(m, PREHEAT_COUNT)
|
||||||
ACTION_ITEM_N_S(extruder, ui.get_preheat_label(m), MSG_PREHEAT_M, _change_filament_with_preset);
|
ACTION_ITEM_N_S(m, ui.get_preheat_label(m), MSG_PREHEAT_M, _change_filament_with_preset);
|
||||||
|
MenuItemBase::itemIndex = old_index;
|
||||||
#endif
|
#endif
|
||||||
EDIT_ITEM_FAST_N(int3, extruder, MSG_PREHEAT_CUSTOM, &thermalManager.temp_hotend[extruder].target,
|
EDIT_ITEM_FAST_N(int3, extruder, MSG_PREHEAT_CUSTOM, &thermalManager.temp_hotend[extruder].target,
|
||||||
EXTRUDE_MINTEMP, thermalManager.heater_maxtemp[extruder] - HOTEND_OVERSHOOT,
|
EXTRUDE_MINTEMP, thermalManager.heater_maxtemp[extruder] - HOTEND_OVERSHOOT,
|
||||||
|
Loading…
Reference in New Issue
Block a user