mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-02-18 00:17:40 +01:00
disable MyWhoosh Link connection method when running BikeControl and MyWhoosh on Windows on the same device
This commit is contained in:
@@ -167,7 +167,7 @@ class WhooshLink {
|
||||
return kIsWeb
|
||||
? false
|
||||
: switch (target) {
|
||||
Target.thisDevice => !Platform.isIOS,
|
||||
Target.thisDevice => !Platform.isWindows,
|
||||
_ => true,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user