Commit ec8811c6038d877d9fb89d4fa79b1ecca8ea5da6

Authored by 김태훈
1 parent 9e48a5d01c
Exists in master and in 2 other branches fhd, fhd-demo

엔코더 동작 개선

- 엔코더 누른 채로 엔코더를 돌렸을 때 이상 동작 현상 제거
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/gui/oven_control/manualcookwindow.cpp
@@ -215,9 +215,9 @@ void ManualCookWindow::keyReleaseEvent(QKeyEvent *event) @@ -215,9 +215,9 @@ void ManualCookWindow::keyReleaseEvent(QKeyEvent *event)
215 onEncoderLeft(); 215 onEncoderLeft();
216 break; 216 break;
217 case 0x01000031: // Push 217 case 0x01000031: // Push
218 - if (focusWidget() == ui->humidityButton) 218 + if (pushed == ui->humidityButton)
219 on_humidityButton_released(); 219 on_humidityButton_released();
220 - else if (focusWidget() == ui->tempButton) 220 + else if (pushed == ui->tempButton)
221 on_tempButton_released(); 221 on_tempButton_released();
222 222
223 if (focusWidget() == pushed) 223 if (focusWidget() == pushed)