fix: move `updateBleState` to connection page initialization (#3539)

Konstantin Ullrich committed Aug 19, 2026 at 22:11 UTC 86906a7f85b744077577d19e1960c2a66662e472
3 files changed +2 -3
lib/src/screens/connect_device/connect_device_page.dart
+2
@@ -120,6 +120,8 @@ class ConnectDevicePageBodyState extends State<ConnectDevicePageBody> {
120 }
121
122 if (widget.hardwareWalletVM.hasBluetooth) {
123 + widget.hardwareWalletVM.updateBleState();
124 +
125 _longWaitTimer = Timer(const Duration(seconds: 10), () {
126 if (widget.hardwareWalletVM.isBleEnabled && bleDevices.isEmpty) {
127 setState(() => longWait = true);
lib/view_model/hardware_wallet/ledger_view_model.dart
-2
@@ -42,8 +42,6 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
42 }
43 });
44
45 - updateBleState();
46 -
45 if (!Platform.isIOS) {
46 ledgerPlusUSB = sdk.LedgerInterface.usb();
47 }
lib/view_model/hardware_wallet/trezor_connect_view_model.dart
-1
@@ -39,7 +39,6 @@ abstract class TrezorConnectViewModelBase extends HardwareWalletViewModel with S
39 _initBLE();
40 }
41 });
42 - updateBleState();
42
43 if (!Platform.isIOS) {
44 trezorUSB = sdk.TrezorInterface.usb();