mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-21 11:23:47 +08:00
ui: remove custom button quiet mode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user