[MICI] ui: show the comma name under connect phone

This commit is contained in:
Jason Wen
2026-11-25 13:09:16 -05:00
parent c26d148439
commit 2b7b311075
@@ -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)