mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 13:04:01 +08:00
ui: fix Always Offroad button visibility (#1632)
always offroad button fix
This commit is contained in:
@@ -202,7 +202,7 @@ class DeviceLayoutSP(DeviceLayout):
|
||||
self._scroller._items.remove(self._always_offroad_btn)
|
||||
if ui_state.is_offroad() and not always_offroad:
|
||||
self._scroller._items.insert(len(self._scroller._items) - 1, self._always_offroad_btn)
|
||||
elif not ui_state.is_offroad():
|
||||
else:
|
||||
self._scroller._items.insert(0, self._always_offroad_btn)
|
||||
|
||||
# Quiet Mode button
|
||||
|
||||
Reference in New Issue
Block a user