File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 5353
5454void menu_tmc ();
5555void menu_backlash ();
56- void menu_cancelobject ();
5756
5857#if ENABLED(DAC_STEPPER_CURRENT)
5958
@@ -560,10 +559,6 @@ void menu_advanced_settings() {
560559 SUBMENU (MSG_BACKLASH, menu_backlash);
561560 #endif
562561
563- #if ENABLED(CANCEL_OBJECTS)
564- SUBMENU (MSG_CANCEL_OBJECT, []{ editable.int8 = -1 ; ui.goto_screen (menu_cancelobject); });
565- #endif
566-
567562 #if ENABLED(DAC_STEPPER_CURRENT)
568563 SUBMENU (MSG_DRIVE_STRENGTH, menu_dac);
569564 #endif
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ static void lcd_cancel_object_confirm() {
4343 };
4444 MenuItem_confirm::confirm_screen (
4545 []{
46- cancelable.cancel_object (MenuItemBase::itemIndex - 1 );
46+ cancelable.cancel_object (MenuItemBase::itemIndex);
4747 ui.completion_feedback ();
4848 ui.goto_previous_screen ();
4949 },
Original file line number Diff line number Diff line change 5151#endif
5252
5353void menu_tune ();
54+ void menu_cancelobject ();
5455void menu_motion ();
5556void menu_temperature ();
5657void menu_configuration ();
@@ -110,7 +111,12 @@ void menu_main() {
110111 );
111112 });
112113 #endif
114+
113115 SUBMENU (MSG_TUNE, menu_tune);
116+
117+ #if ENABLED(CANCEL_OBJECTS) && DISABLED(SLIM_LCD_MENUS)
118+ SUBMENU (MSG_CANCEL_OBJECT, []{ editable.int8 = -1 ; ui.goto_screen (menu_cancelobject); });
119+ #endif
114120 }
115121 else {
116122
You can’t perform that action at this time.
0 commit comments