mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-10-01 01:43:41 +08:00
I. SAID. SIMPLIFY.
This commit is contained in:
@@ -170,10 +170,8 @@ class OptionControlSP(ItemAction):
|
||||
if self._minus_enabled and rl.check_collision_point_rec(mouse_pos, self.minus_btn_rect):
|
||||
self.current_value -= self.value_change_step
|
||||
self.current_value = max(self.min_value, self.current_value)
|
||||
value_changed = True
|
||||
elif self._plus_enabled and rl.check_collision_point_rec(mouse_pos, self.plus_btn_rect):
|
||||
self.current_value += self.value_change_step
|
||||
self.current_value = min(self.max_value, self.current_value)
|
||||
value_changed = True
|
||||
|
||||
self.set_value(self.current_value)
|
||||
|
||||
Reference in New Issue
Block a user