Skip to content

Commit

Permalink
Do not use SharedName
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjorjo authored Jan 1, 2025
1 parent f240319 commit f69b208
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PursuitTimer/Helpers/TimingTargetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public static class TimingTargetHelper
public static TimingTarget GetTimingTarget()
{
IPreferences _preferences = Preferences.Default;
double target = _preferences.Get<double>(KeyTarget, default, SharedName);
double over = _preferences.Get<double>(KeyToleranceOver, default, SharedName);
double under = _preferences.Get<double>(KeyToleranceUnder, default, SharedName);
double target = _preferences.Get<double>(KeyTarget, default);
double over = _preferences.Get<double>(KeyToleranceOver, default);
double under = _preferences.Get<double>(KeyToleranceUnder, default);

return new TimingTarget
{
Expand All @@ -26,8 +26,8 @@ public static TimingTarget GetTimingTarget()
public static void SaveTimingTarget(TimingTarget value)
{
IPreferences _preferences = Preferences.Default;
_preferences.Set(KeyTarget, value.Target.TotalSeconds, SharedName);
_preferences.Set(KeyToleranceOver, value.ToleranceOver.TotalSeconds, SharedName);
_preferences.Set(KeyToleranceUnder, value.ToleranceUnder.TotalSeconds, SharedName);
_preferences.Set(KeyTarget, value.Target.TotalSeconds);
_preferences.Set(KeyToleranceOver, value.ToleranceOver.TotalSeconds);
_preferences.Set(KeyToleranceUnder, value.ToleranceUnder.TotalSeconds);
}
}

0 comments on commit f69b208

Please sign in to comment.