ui: remove custom button quiet mode

This commit is contained in:
royjr
2026-08-16 16:33:39 -04:00
parent 823b447fff
commit a8795674b8
5 changed files with 0 additions and 17 deletions
-5
View File
@@ -43,7 +43,6 @@ class MainLayout(Widget):
}
self._custom_button_callbacks = {
CustomButtonAction.BOOKMARK: self._on_bookmark_clicked,
CustomButtonAction.QUIET_MODE: self._toggle_quiet_mode,
CustomButtonAction.CYCLE_UI: self._cycle_ui,
}
@@ -121,10 +120,6 @@ class MainLayout(Widget):
def _on_settings_clicked(self):
self.open_settings(PanelType.DEVICE)
@staticmethod
def _toggle_quiet_mode():
ui_state.params.put_bool('QuietMode', not ui_state.params.get_bool('QuietMode'))
def _show_onroad(self):
self._set_current_layout(MainState.ONROAD)
self._sidebar.set_visible(False)
@@ -38,7 +38,6 @@ class MiciMainLayout(Scroller):
self._body_onroad_layout = BodyLayout()
self._custom_button_callbacks = {
CustomButtonAction.BOOKMARK: self._on_bookmark_clicked,
CustomButtonAction.QUIET_MODE: self._toggle_quiet_mode,
CustomButtonAction.CYCLE_UI: self._cycle_ui,
}
@@ -158,10 +157,6 @@ class MiciMainLayout(Scroller):
msg = messaging.new_message(service, valid=True)
self._pm.send(service, msg)
@staticmethod
def _toggle_quiet_mode():
ui_state.params.put_bool('QuietMode', not ui_state.params.get_bool('QuietMode'))
def _show_layout(self, layout: Widget):
if gui_app.widget_in_stack(self._onboarding_window):
return
@@ -6,7 +6,6 @@ from opendbc.car.structs import car
class CustomButtonAction(IntEnum):
NONE = 0
BOOKMARK = 1
QUIET_MODE = 2
CYCLE_UI = 3
@@ -2186,10 +2186,6 @@
"value": 1,
"label": "Bookmark"
},
{
"value": 2,
"label": "Quiet Mode"
},
{
"value": 3,
"label": "Cycle UI"
@@ -19,8 +19,6 @@ sections:
label: None
- value: 1
label: Bookmark
- value: 2
label: Quiet Mode
- value: 3
label: Cycle UI
- key: HyundaiLongitudinalTuning