1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 14:27:31 +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() public void ResetValues()
{ {
SetValue(Static.LoginOverlayDisplayed, false); GetOriginalBindable<bool>(Static.LoginOverlayDisplayed).SetDefault();
SetValue(Static.MutedAudioNotificationShownOnce, false); GetOriginalBindable<bool>(Static.MutedAudioNotificationShownOnce).SetDefault();
SetValue(Static.LowBatteryNotificationShownOnce, false); GetOriginalBindable<bool>(Static.LowBatteryNotificationShownOnce).SetDefault();
SetValue(Static.LastHoverSoundPlaybackTime, (double?)null); GetOriginalBindable<double?>(Static.LastHoverSoundPlaybackTime).SetDefault();
SetValue<APISeasonalBackgrounds>(Static.SeasonalBackgrounds, null); GetOriginalBindable<APISeasonalBackgrounds>(Static.SeasonalBackgrounds).SetDefault();
} }
} }