From d6d11eaad2582e44669580c5c3e2036993b01d9c Mon Sep 17 00:00:00 2001 From: just_stuff_tm <133525672+just-stuff-tm@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:20:41 -0500 Subject: [PATCH] Update active USB port key and label on connection, notify listeners --- lib/connector/meshcore_connector.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 50ae50c..b3aaeab 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -975,6 +975,10 @@ class MeshCoreConnector extends ChangeNotifier { await _usbFrameSubscription?.cancel(); _usbFrameSubscription = null; await _usbSerialService.connect(portName: portName, baudRate: baudRate); + _activeUsbPortKey = _usbSerialService.activePortKey ?? _activeUsbPortKey; + _activeUsbPortLabel = + _usbSerialService.activePortDisplayLabel ?? _activeUsbPortLabel; + notifyListeners(); if (PlatformInfo.isWeb) { await stopScan(); }