mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 14:37:25 +08: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()
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user