mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-06 22:47:27 -06:00
🚸 Fixes for ProUI popup, abort (#26308)
This commit is contained in:
parent
c5b267162c
commit
f3473495d0
7 changed files with 27 additions and 8 deletions
|
@ -1713,6 +1713,18 @@ void dwinPrintFinished() {
|
|||
|
||||
// Print was aborted
|
||||
void dwinPrintAborted() {
|
||||
#ifndef EVENT_GCODE_SD_ABORT
|
||||
if (all_axes_homed()) {
|
||||
queue.inject(
|
||||
#if ENABLED(NOZZLE_PARK_FEATURE)
|
||||
F("G27")
|
||||
#else
|
||||
TS(F("G0Z"), float(_MIN(current_position.z + (Z_POST_CLEARANCE), Z_MAX_POS)), F("\nG0F2000Y"), Y_MAX_POS);
|
||||
#endif
|
||||
);
|
||||
}
|
||||
#endif
|
||||
hostui.notify("Print Aborted");
|
||||
dwinPrintFinished();
|
||||
}
|
||||
|
||||
|
@ -2226,7 +2238,8 @@ void setMoveZ() { hmiValue.axis = Z_AXIS; setPFloatOnClick(Z_MIN_POS, Z_MAX_POS,
|
|||
#endif
|
||||
|
||||
#if LCD_BACKLIGHT_TIMEOUT_MINS
|
||||
void setTimer() { setPIntOnClick(ui.backlight_timeout_min, ui.backlight_timeout_max); }
|
||||
void applyTimer() { ui.backlight_timeout_minutes = menuData.value; }
|
||||
void setTimer() { setIntOnClick(ui.backlight_timeout_min, ui.backlight_timeout_max, ui.backlight_timeout_minutes, applyTimer); }
|
||||
#endif
|
||||
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
|
|
|
@ -50,9 +50,15 @@ inline void drawPopupBkgd() {
|
|||
|
||||
template<typename T, typename U>
|
||||
void dwinDrawPopup(const uint8_t icon, T amsg1=nullptr, U amsg2=nullptr, uint8_t button=0) {
|
||||
xy_uint8_t pos;
|
||||
switch (icon) {
|
||||
default: pos.set(81, 90); break; // Icon 1 - 8, 90 - 91; (110 x 100)
|
||||
case 17 ... 24: pos.set(96, 90); break; // Icon 17 - 24; ( 80 x 100)
|
||||
case 78 ... 81: pos.set(100, 107); break; // Icon 78 - 81; ( 73 x 66)
|
||||
}
|
||||
DWINUI::clearMainArea();
|
||||
drawPopupBkgd();
|
||||
if (icon) DWINUI::drawIcon(icon, 101, 105);
|
||||
if (icon) DWINUI::drawIcon(icon, pos.x, pos.y);
|
||||
if (amsg1) DWINUI::drawCenteredString(hmiData.colorPopupTxt, 210, amsg1);
|
||||
if (amsg2) DWINUI::drawCenteredString(hmiData.colorPopupTxt, 240, amsg2);
|
||||
if (button) DWINUI::drawButton(button, 86, 280);
|
||||
|
|
|
@ -24,7 +24,7 @@ opt_enable DWIN_MARLINUI_LANDSCAPE LCD_ENDSTOP_TEST AUTO_BED_LEVELING_UBL BLTOUC
|
|||
exec_test $1 $2 "Ender-3 v2 - MarlinUI (UBL+BLTOUCH, MPCTEMP, LCD_ENDSTOP_TEST)" "$3"
|
||||
|
||||
use_example_configs "Creality/Ender-3 S1/STM32F1"
|
||||
opt_disable DWIN_CREALITY_LCD Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN AUTO_BED_LEVELING_BILINEAR CANCEL_OBJECTS FWRETRACT
|
||||
opt_disable DWIN_CREALITY_LCD Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN AUTO_BED_LEVELING_BILINEAR CANCEL_OBJECTS FWRETRACT EVENT_GCODE_SD_ABORT
|
||||
opt_enable DWIN_LCD_PROUI INDIVIDUAL_AXIS_HOMING_SUBMENU SET_PROGRESS_MANUALLY SET_PROGRESS_PERCENT STATUS_MESSAGE_SCROLLING \
|
||||
SOUND_MENU_ITEM PRINTCOUNTER NOZZLE_PARK_FEATURE ADVANCED_PAUSE_FEATURE FILAMENT_RUNOUT_SENSOR \
|
||||
BLTOUCH Z_SAFE_HOMING AUTO_BED_LEVELING_UBL MESH_EDIT_MENU LCD_BED_TRAMMING \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue