[TIZI/TICI] ui: disable the other-model row onroad like the active row

This commit is contained in:
Jason Wen
2026-08-26 02:48:15 -04:00
parent 5c3505b25f
commit c2cbae9e00
@@ -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):