mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
stopwatch: disable laps at maxLapCount
This commit is contained in:
parent
56799d27d0
commit
effced8bda
|
@ -195,7 +195,6 @@ void StopWatch::stopLapBtnEventHandler() {
|
|||
lv_label_set_text(lapText, "");
|
||||
lapsDone = std::min(lapsDone + 1, maxLapCount);
|
||||
if (lapsDone == maxLapCount) {
|
||||
// lv_obj_set_style_local_bg_color(btnStopLap, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, Colors::bgDark);
|
||||
lv_obj_set_state(btnStopLap, LV_STATE_DISABLED);
|
||||
lv_obj_set_state(txtStopLap, LV_STATE_DISABLED);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue