Browse Source

🚸 Fix MKS LVGL UI temperature set interface (#22848)

Sola 3 years ago
parent
commit
5dce8d0a84
No account linked to committer's email address

+ 5
- 9
Marlin/src/lcd/extui/mks_ui/draw_preHeat.cpp View File

@@ -124,24 +124,20 @@ static void event_handler(lv_obj_t *obj, lv_event_t event) {
124 124
         else if (uiCfg.extruderIndex == 0) {
125 125
           uiCfg.curTempType = TERN(HAS_HEATED_BED, 1, 0);
126 126
         }
127
+        lv_obj_del(btn_pla);
128
+        lv_obj_del(btn_abs);
127 129
       }
128 130
       else if (uiCfg.curTempType == 1) {
129 131
         uiCfg.extruderIndex = 0;
130 132
         uiCfg.curTempType = 0;
133
+        lv_obj_del(buttonAdd);
134
+        lv_obj_del(buttonDec);
131 135
         disp_add_dec();
132 136
         disp_ext_heart();
133 137
       }
138
+
134 139
       disp_temp_type();
135 140
       break;
136
-    case ID_P_STEP:
137
-      switch (uiCfg.stepHeat) {
138
-        case  1: uiCfg.stepHeat =  5; break;
139
-        case  5: uiCfg.stepHeat = 10; break;
140
-        case 10: uiCfg.stepHeat =  1; break;
141
-        default: break;
142
-      }
143
-      disp_step_heat();
144
-      break;
145 141
     case ID_P_OFF:
146 142
       if (uiCfg.curTempType == 0) {
147 143
         thermalManager.setTargetHotend(0, uiCfg.extruderIndex);

+ 1
- 0
Marlin/src/lcd/extui/mks_ui/draw_ready_print.cpp View File

@@ -98,6 +98,7 @@ void disp_det_ok() {
98 98
   lv_obj_set_style(det_info, &det_style);
99 99
   lv_label_set_text(det_info, "det:ok");
100 100
 }
101
+
101 102
 void disp_det_error() {
102 103
   det_style.text.color.full = 0xF800;
103 104
   lv_obj_set_style(det_info, &det_style);

Loading…
Cancel
Save