Show warning for linux as well

This commit is contained in:
Dean Herbert 2021-07-26 17:24:43 +09:00
parent b70bd7689e
commit 075507648a
2 changed files with 4 additions and 4 deletions

View File

@ -55,9 +55,9 @@ public static class MouseSettingsStrings
public static LocalisableString CursorSensitivity => new TranslatableString(getKey(@"cursor_sensitivity"), @"Cursor sensitivity");
/// <summary>
/// "This setting currently has issues on macOS. It is recommended to adjust sensitivity externally and keep this disabled for now."
/// "This setting currently has issues on your platform. It is recommended to adjust sensitivity externally and keep this disabled for now."
/// </summary>
public static LocalisableString HighPrecisionMacOSWarning => new TranslatableString(getKey(@"high_precision_macos_warning"), @"This setting currently has issues on macOS. It is recommended to adjust sensitivity externally and keep this disabled for now.");
public static LocalisableString HighPrecisionPlatformWarning => new TranslatableString(getKey(@"high_precision_platform_warning"), @"This setting has known issues on your platform. If you encounter problems, it is recommended to adjust sensitivity externally and keep this disabled for now.");
private static string getKey(string key) => $@"{prefix}:{key}";
}

View File

@ -113,10 +113,10 @@ protected override void LoadComplete()
highPrecisionMouse.Current.BindValueChanged(highPrecision =>
{
if (RuntimeInfo.OS == RuntimeInfo.Platform.macOS)
if (RuntimeInfo.OS != RuntimeInfo.Platform.Windows)
{
if (highPrecision.NewValue)
highPrecisionMouse.WarningText = MouseSettingsStrings.HighPrecisionMacOSWarning;
highPrecisionMouse.WarningText = MouseSettingsStrings.HighPrecisionPlatformWarning;
else
highPrecisionMouse.WarningText = null;
}