mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-12-01 05:33:42 +08:00
[MICI] ui: show the comma name under connect phone
This commit is contained in:
@@ -11,7 +11,7 @@ from openpilot.selfdrive.ui.mici.widgets.dialog import BigConfirmationDialog
|
||||
from openpilot.selfdrive.ui.sunnypilot.mici.layouts.connect_phone import start_connect_phone
|
||||
from openpilot.selfdrive.ui.ui_state import ui_state
|
||||
from openpilot.sunnypilot.system.ble import grants
|
||||
from openpilot.sunnypilot.system.connect_phone import write_request
|
||||
from openpilot.sunnypilot.system.connect_phone import display_name, write_request
|
||||
from openpilot.system.ui.lib.application import gui_app
|
||||
from openpilot.system.ui.lib.multilang import tr
|
||||
from openpilot.system.ui.widgets.scroller import NavScroller
|
||||
@@ -34,7 +34,7 @@ class BluetoothLayoutMici(NavScroller):
|
||||
|
||||
self._bluetooth_toggle = BigParamControl(tr("bluetooth"), "BluetoothAllowed", toggle_callback=bluetooth_callback)
|
||||
|
||||
self._connect_phone_btn = BigButton(tr("connect phone"), "")
|
||||
self._connect_phone_btn = BigButton(tr("connect phone"), display_name(ui_state.params))
|
||||
self._connect_phone_btn.set_click_callback(start_connect_phone)
|
||||
self._connect_phone_btn.set_enabled(lambda: self._bluetooth_on)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user