mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
fix SwiftControl Web
This commit is contained in:
@@ -30,7 +30,7 @@ class ShimanoDi2 extends BluetoothDevice {
|
||||
}
|
||||
}
|
||||
|
||||
var _lastButtons = <int, int>{};
|
||||
final _lastButtons = <int, int>{};
|
||||
|
||||
@override
|
||||
Future<void> processCharacteristic(String characteristic, Uint8List bytes) {
|
||||
|
||||
@@ -61,18 +61,20 @@ class _DevicePageState extends State<DevicePage> with WidgetsBindingObserver {
|
||||
_checkAndShowChangelog();
|
||||
});
|
||||
|
||||
whooshLink.isStarted.addListener(() {
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
|
||||
zwiftEmulator.isConnected.addListener(() {
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
|
||||
if (settings.getZwiftEmulatorEnabled() && actionHandler.supportedApp?.supportsZwiftEmulation == true) {
|
||||
zwiftEmulator.startAdvertising(() {
|
||||
if (!kIsWeb) {
|
||||
whooshLink.isStarted.addListener(() {
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
|
||||
zwiftEmulator.isConnected.addListener(() {
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
|
||||
if (settings.getZwiftEmulatorEnabled() && actionHandler.supportedApp?.supportsZwiftEmulation == true) {
|
||||
zwiftEmulator.startAdvertising(() {
|
||||
if (mounted) setState(() {});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (actionHandler is RemoteActions && !kIsWeb && Platform.isIOS && (actionHandler as RemoteActions).isConnected) {
|
||||
|
||||
Reference in New Issue
Block a user