🐛 Fix PAUSE_MESSAGE_PAUSING=>PARKING
Fixes #22250. Regression from #17460.
This commit is contained in:
parent
603b65e843
commit
c7c56ac45f
@ -238,7 +238,7 @@ void lv_draw_dialog(uint8_t type) {
|
||||
lv_obj_t *labelOk = lv_label_create_empty(btnOk); // Add a label to the button
|
||||
lv_label_set_text(labelOk, print_file_dialog_menu.confirm); // Set the labels text
|
||||
}
|
||||
else if (DIALOG_IS(PAUSE_MESSAGE_PAUSING, PAUSE_MESSAGE_CHANGING, PAUSE_MESSAGE_UNLOAD, PAUSE_MESSAGE_LOAD, PAUSE_MESSAGE_PURGE, PAUSE_MESSAGE_RESUME, PAUSE_MESSAGE_HEATING)) {
|
||||
else if (DIALOG_IS(PAUSE_MESSAGE_PARKING, PAUSE_MESSAGE_CHANGING, PAUSE_MESSAGE_UNLOAD, PAUSE_MESSAGE_LOAD, PAUSE_MESSAGE_PURGE, PAUSE_MESSAGE_RESUME, PAUSE_MESSAGE_HEATING)) {
|
||||
// nothing to do
|
||||
}
|
||||
else if (DIALOG_IS(WIFI_ENABLE_TIPS)) {
|
||||
@ -324,7 +324,7 @@ void lv_draw_dialog(uint8_t type) {
|
||||
lv_label_set_text(labelDialog, print_file_dialog_menu.print_finish);
|
||||
lv_obj_align(labelDialog, nullptr, LV_ALIGN_CENTER, 0, -20);
|
||||
}
|
||||
else if (DIALOG_IS(PAUSE_MESSAGE_PAUSING)) {
|
||||
else if (DIALOG_IS(PAUSE_MESSAGE_PARKING)) {
|
||||
lv_label_set_text(labelDialog, pause_msg_menu.pausing);
|
||||
lv_obj_align(labelDialog, nullptr, LV_ALIGN_CENTER, 0, -20);
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ enum {
|
||||
|
||||
DIALOG_WIFI_ENABLE_TIPS,
|
||||
|
||||
DIALOG_PAUSE_MESSAGE_PAUSING,
|
||||
DIALOG_PAUSE_MESSAGE_PARKING,
|
||||
DIALOG_PAUSE_MESSAGE_CHANGING,
|
||||
DIALOG_PAUSE_MESSAGE_UNLOAD,
|
||||
DIALOG_PAUSE_MESSAGE_WAITING,
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
void lv_draw_pause_message(const PauseMessage msg) {
|
||||
switch (msg) {
|
||||
case PAUSE_MESSAGE_PAUSING: clear_cur_ui(); lv_draw_dialog(DIALOG_PAUSE_MESSAGE_PAUSING); break;
|
||||
case PAUSE_MESSAGE_PARKING: clear_cur_ui(); lv_draw_dialog(DIALOG_PAUSE_MESSAGE_PARKING); break;
|
||||
case PAUSE_MESSAGE_CHANGING: clear_cur_ui(); lv_draw_dialog(DIALOG_PAUSE_MESSAGE_CHANGING); break;
|
||||
case PAUSE_MESSAGE_UNLOAD: clear_cur_ui(); lv_draw_dialog(DIALOG_PAUSE_MESSAGE_UNLOAD); break;
|
||||
case PAUSE_MESSAGE_WAITING: clear_cur_ui(); lv_draw_dialog(DIALOG_PAUSE_MESSAGE_WAITING); break;
|
||||
|
Loading…
Reference in New Issue
Block a user