|
@ -55,6 +55,11 @@ |
|
|
#include "../../../../feature/pause.h" |
|
|
#include "../../../../feature/pause.h" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(TOUCH_SCREEN_CALIBRATION) |
|
|
|
|
|
#include "../../../tft_io/touch_calibration.h" |
|
|
|
|
|
#include "draw_touch_calibration.h" |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
extern lv_group_t *g; |
|
|
extern lv_group_t *g; |
|
|
static lv_obj_t *scr, *tempText1, *filament_bar; |
|
|
static lv_obj_t *scr, *tempText1, *filament_bar; |
|
|
|
|
|
|
|
@ -161,7 +166,16 @@ static void btn_ok_event_cb(lv_obj_t *btn, lv_event_t event) { |
|
|
else if (DIALOG_IS(REVERT_EEPROM_TIPS)) { |
|
|
else if (DIALOG_IS(REVERT_EEPROM_TIPS)) { |
|
|
TERN_(EEPROM_SETTINGS, (void)settings.reset()); |
|
|
TERN_(EEPROM_SETTINGS, (void)settings.reset()); |
|
|
clear_cur_ui(); |
|
|
clear_cur_ui(); |
|
|
draw_return_ui(); |
|
|
#if ENABLED(TOUCH_SCREEN_CALIBRATION) |
|
|
|
|
|
const bool do_draw_cal = touch_calibration.need_calibration(); |
|
|
|
|
|
if (do_draw_cal) { |
|
|
|
|
|
disp_state_stack._disp_index--; // We are asynchronous from the dialog, so let's remove the dialog from the stack
|
|
|
|
|
|
lv_draw_touch_calibration_screen(); |
|
|
|
|
|
} |
|
|
|
|
|
#else |
|
|
|
|
|
constexpr bool do_draw_cal = false; |
|
|
|
|
|
#endif |
|
|
|
|
|
if (!do_draw_cal) draw_return_ui(); |
|
|
} |
|
|
} |
|
|
else if (DIALOG_IS(WIFI_CONFIG_TIPS)) { |
|
|
else if (DIALOG_IS(WIFI_CONFIG_TIPS)) { |
|
|
uiCfg.configWifi = 1; |
|
|
uiCfg.configWifi = 1; |
|
@ -181,9 +195,7 @@ static void btn_ok_event_cb(lv_obj_t *btn, lv_event_t event) { |
|
|
static void btn_cancel_event_cb(lv_obj_t *btn, lv_event_t event) { |
|
|
static void btn_cancel_event_cb(lv_obj_t *btn, lv_event_t event) { |
|
|
if (event != LV_EVENT_RELEASED) return; |
|
|
if (event != LV_EVENT_RELEASED) return; |
|
|
if (DIALOG_IS(PAUSE_MESSAGE_OPTION)) { |
|
|
if (DIALOG_IS(PAUSE_MESSAGE_OPTION)) { |
|
|
#if ENABLED(ADVANCED_PAUSE_FEATURE) |
|
|
TERN_(ADVANCED_PAUSE_FEATURE, pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT); |
|
|
pause_menu_response = PAUSE_RESPONSE_RESUME_PRINT; |
|
|
|
|
|
#endif |
|
|
|
|
|
} |
|
|
} |
|
|
else if (DIALOG_IS(TYPE_FILAMENT_LOAD_HEAT, TYPE_FILAMENT_UNLOAD_HEAT, TYPE_FILAMENT_HEAT_LOAD_COMPLETED, TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED)) { |
|
|
else if (DIALOG_IS(TYPE_FILAMENT_LOAD_HEAT, TYPE_FILAMENT_UNLOAD_HEAT, TYPE_FILAMENT_HEAT_LOAD_COMPLETED, TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED)) { |
|
|
thermalManager.temp_hotend[uiCfg.curSprayerChoose].target= uiCfg.desireSprayerTempBak; |
|
|
thermalManager.temp_hotend[uiCfg.curSprayerChoose].target= uiCfg.desireSprayerTempBak; |
|
|