mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-09-13 00:03:45 +08:00
[TIZI/TICI] ui: disable the other-model row onroad like the active row
This commit is contained in:
@@ -286,9 +286,11 @@ class ModelsLayout(Widget):
|
||||
|
||||
if not ui_state.is_offroad():
|
||||
self.current_model_item.action_item.set_enabled(False)
|
||||
self.other_model_item.action_item.set_enabled(False)
|
||||
self.current_model_item.set_description(tr("Only available when vehicle is off, or always offroad mode is on"))
|
||||
else:
|
||||
self.current_model_item.action_item.set_enabled(True)
|
||||
self.other_model_item.action_item.set_enabled(True)
|
||||
self.current_model_item.set_description("")
|
||||
|
||||
def _render(self, rect):
|
||||
|
||||
Reference in New Issue
Block a user