disable MyWhoosh Link connection method when running BikeControl and MyWhoosh on Windows on the same device

This commit is contained in:
Jonas Bark
2025-12-10 09:03:58 +01:00
parent 84f70f13d8
commit a8b68c2d89
2 changed files with 5 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ class WhooshLink {
return kIsWeb
? false
: switch (target) {
Target.thisDevice => !Platform.isIOS,
Target.thisDevice => !Platform.isWindows,
_ => true,
};
}

View File

@@ -172,7 +172,10 @@ class CoreLogic {
return core.settings.getRemoteControlEnabled() && showRemote;
}
bool get showMyWhooshLink => core.settings.getTrainerApp() is MyWhoosh && core.settings.getLastTarget() != null;
bool get showMyWhooshLink =>
core.settings.getTrainerApp() is MyWhoosh &&
core.settings.getLastTarget() != null &&
core.whooshLink.isCompatible(core.settings.getLastTarget()!);
bool get showRemote => core.settings.getLastTarget() != Target.thisDevice && core.actionHandler is RemoteActions;