From 942a3264d2dba487dddca5cfc5e44ade98c7facf Mon Sep 17 00:00:00 2001 From: Jonas Bark Date: Fri, 24 Apr 2026 08:01:21 +0200 Subject: [PATCH] advertistement change --- lib/bluetooth/devices/proxy/proxy_device.dart | 3 ++- prop | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bluetooth/devices/proxy/proxy_device.dart b/lib/bluetooth/devices/proxy/proxy_device.dart index 9caa82a7..3daa6b09 100644 --- a/lib/bluetooth/devices/proxy/proxy_device.dart +++ b/lib/bluetooth/devices/proxy/proxy_device.dart @@ -7,6 +7,7 @@ import 'package:bike_control/gen/l10n.dart'; import 'package:bike_control/utils/actions/base_actions.dart'; import 'package:bike_control/utils/core.dart'; import 'package:bike_control/utils/iap/iap_manager.dart'; +import 'package:bike_control/utils/keymap/apps/zwift.dart'; import 'package:bike_control/utils/keymap/buttons.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:prop/emulators/definitions/fitness_bike_definition.dart'; @@ -43,7 +44,7 @@ class ProxyDevice extends BluetoothDevice { return IAPManager.instance.isProEnabledForCurrentDevice ? null : 'BikeControl - 20 min trial'; }; emulator.shouldAdvertise = () => !_isBridgeTrialOver; - emulator.shouldAdvertiseZwift = () => core.settings.getTrainerApp()?.name == 'Zwift'; + emulator.shouldAdvertiseZwift = () => core.settings.getTrainerApp() is Zwift; emulator.isConnected.addListener(_syncBridgeTracking); emulator.retrofitMode.addListener(_syncBridgeTracking); } diff --git a/prop b/prop index 9475e9d7..0c97304c 160000 --- a/prop +++ b/prop @@ -1 +1 @@ -Subproject commit 9475e9d7a95d215619de5ec1103b0ca79a8fe10f +Subproject commit 0c97304c6cfc36580bfb638ce18ae2d8b9e7ed2b