addressed codex review cleanup

This commit is contained in:
just-stuff-tm committed 2026-03-05 02:50:38 -05:00
1 parent f584c4fba0
commit fb58a3262c
2 files changed
+3 -4

No files matched your search

+3
View File
@@ -33,9 +33,12 @@ class _ScannerScreenState extends State<ScannerScreen> {
_connector = Provider.of<MeshCoreConnector>(context, listen: false);
_connectionListener = () {
final isCurrentRoute = ModalRoute.of(context)?.isCurrent ?? true;
if (_connector.state == MeshCoreConnectionState.disconnected) {
_changedNavigation = false;
} else if (_connector.state == MeshCoreConnectionState.connected &&
_connector.activeTransport == MeshCoreTransportType.bluetooth &&
isCurrentRoute &&
!_changedNavigation) {
_changedNavigation = true;
if (mounted) {