Closed Jiogo18 closed 5 months ago
The first commit is about the webcam checkbox. It flickers between ON and OFF when I click it.
This is because MainWindow::updateData() is called after the click, but before ecData is updated. So the update contains the previous value.
MainWindow::updateData()
Fixed by calling updateEcData, like in MainWindow::setCoolerBoostState
updateEcData
MainWindow::setCoolerBoostState
The second commit is about replacing Checkbox::toggled by Checkbox::clicked.
The first commit is about the webcam checkbox. It flickers between ON and OFF when I click it.
This is because
MainWindow::updateData()
is called after the click, but before ecData is updated. So the update contains the previous value.Fixed by calling
updateEcData
, like inMainWindow::setCoolerBoostState
The second commit is about replacing Checkbox::toggled by Checkbox::clicked.