1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +08:00

Implicitly set defaults when resetting values

This commit is contained in:
jvyden 2021-04-17 08:47:27 -04:00
parent 854d88bfb9
commit 6773162f17
No known key found for this signature in database
GPG Key ID: 18BCF2BE0262B278

View File

@ -23,11 +23,11 @@ namespace osu.Game.Configuration
public void ResetValues()
{
SetValue(Static.LoginOverlayDisplayed, false);
SetValue(Static.MutedAudioNotificationShownOnce, false);
SetValue(Static.LowBatteryNotificationShownOnce, false);
SetValue(Static.LastHoverSoundPlaybackTime, (double?)null);
SetValue<APISeasonalBackgrounds>(Static.SeasonalBackgrounds, null);
GetOriginalBindable<bool>(Static.LoginOverlayDisplayed).SetDefault();
GetOriginalBindable<bool>(Static.MutedAudioNotificationShownOnce).SetDefault();
GetOriginalBindable<bool>(Static.LowBatteryNotificationShownOnce).SetDefault();
GetOriginalBindable<double?>(Static.LastHoverSoundPlaybackTime).SetDefault();
GetOriginalBindable<APISeasonalBackgrounds>(Static.SeasonalBackgrounds).SetDefault();
}
}