mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Implicitly set defaults when resetting values
This commit is contained in:
parent
854d88bfb9
commit
6773162f17
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user