|
|
|
@ -136,19 +136,16 @@ static void btn_ok_event_cb(lv_obj_t *btn, lv_event_t event) {
|
|
|
|
|
else if (DIALOG_IS(PAUSE_MESSAGE_OPTION))
|
|
|
|
|
pause_menu_response = PAUSE_RESPONSE_EXTRUDE_MORE;
|
|
|
|
|
else if (DIALOG_IS(PAUSE_MESSAGE_RESUME)) {
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
else if (DIALOG_IS(STORE_EEPROM_TIPS)) {
|
|
|
|
|
TERN_(EEPROM_SETTINGS, (void)settings.save());
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(READ_EEPROM_TIPS)) {
|
|
|
|
|
TERN_(EEPROM_SETTINGS, (void)settings.load());
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(REVERT_EEPROM_TIPS)) {
|
|
|
|
|
TERN_(EEPROM_SETTINGS, (void)settings.reset());
|
|
|
|
@ -166,27 +163,23 @@ static void btn_ok_event_cb(lv_obj_t *btn, lv_event_t event) {
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(WIFI_CONFIG_TIPS)) {
|
|
|
|
|
uiCfg.configWifi = true;
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(TYPE_FILAMENT_HEAT_LOAD_COMPLETED))
|
|
|
|
|
uiCfg.filament_heat_completed_load = true;
|
|
|
|
|
else if (DIALOG_IS(TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED))
|
|
|
|
|
uiCfg.filament_heat_completed_unload = true;
|
|
|
|
|
else if (DIALOG_IS(TYPE_FILAMENT_LOAD_COMPLETED, TYPE_FILAMENT_UNLOAD_COMPLETED)) {
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
#if ENABLED(MKS_WIFI_MODULE)
|
|
|
|
|
else if (DIALOG_IS(TYPE_UNBIND)) {
|
|
|
|
|
cloud_unbind();
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
else {
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -197,8 +190,7 @@ static void btn_cancel_event_cb(lv_obj_t *btn, lv_event_t event) {
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(TYPE_FILAMENT_LOAD_HEAT, TYPE_FILAMENT_UNLOAD_HEAT, TYPE_FILAMENT_HEAT_LOAD_COMPLETED, TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED)) {
|
|
|
|
|
thermalManager.setTargetHotend(uiCfg.hotendTargetTempBak, uiCfg.extruderIndex);
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
else if (DIALOG_IS(TYPE_FILAMENT_LOADING, TYPE_FILAMENT_UNLOADING)) {
|
|
|
|
|
queue.enqueue_one(F("M410"));
|
|
|
|
@ -210,12 +202,10 @@ static void btn_cancel_event_cb(lv_obj_t *btn, lv_event_t event) {
|
|
|
|
|
uiCfg.filament_unloading_time_flg = false;
|
|
|
|
|
uiCfg.filament_unloading_time_cnt = 0;
|
|
|
|
|
thermalManager.setTargetHotend(uiCfg.hotendTargetTempBak, uiCfg.extruderIndex);
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
clear_cur_ui();
|
|
|
|
|
draw_return_ui();
|
|
|
|
|
goto_previous_ui();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|