Commit 618320ecd0409c0710e9ba08952d1df364b3a1b5

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

불필요한 UI 갱신 제거

Showing 1 changed file with 10 additions and 4 deletions   Show diff stats
app/gui/oven_control/autocookwindow.cpp
... ... @@ -873,9 +873,12 @@ void AutoCookWindow::on_humidityGaugeButton_pressed()
873 873 void AutoCookWindow::on_humidityGaugeButton_released()
874 874 {
875 875 showCurrentHumidityTimer.stop();
876   - showingCurrentHumidity = false;
877 876  
878   - updateView();
  877 + if (showingCurrentHumidity)
  878 + {
  879 + showingCurrentHumidity = false;
  880 + updateView();
  881 + }
879 882 }
880 883  
881 884 void AutoCookWindow::on_heatGaugeButton_pressed()
... ... @@ -886,9 +889,12 @@ void AutoCookWindow::on_heatGaugeButton_pressed()
886 889 void AutoCookWindow::on_heatGaugeButton_released()
887 890 {
888 891 showCurrentTempTimer.stop();
889   - showingCurrentTemp = false;
890 892  
891   - updateView();
  893 + if (showingCurrentTemp)
  894 + {
  895 + showingCurrentTemp = false;
  896 + updateView();
  897 + }
892 898 }
893 899  
894 900 void AutoCookWindow::showCurrentHumidity()
... ...