mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:43:01 +08:00
Remove unnecessary IgnoreUserSettings
value change
This commit is contained in:
parent
f81dea4166
commit
1a9ed1ac3f
@ -133,15 +133,11 @@ namespace osu.Game.Screens.Select
|
||||
configBackgroundBlur = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur);
|
||||
configBackgroundBlur.BindValueChanged(e =>
|
||||
{
|
||||
if (this.IsCurrentScreen())
|
||||
{
|
||||
ApplyToBackground(background =>
|
||||
{
|
||||
background.IgnoreUserSettings.Value = true;
|
||||
background.BlurAmount.Value = e.NewValue ? BACKGROUND_BLUR : 0;
|
||||
});
|
||||
}
|
||||
}, true);
|
||||
if (!this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
ApplyToBackground(b => b.BlurAmount.Value = e.NewValue ? BACKGROUND_BLUR : 0);
|
||||
});
|
||||
|
||||
LoadComponentAsync(Carousel = new BeatmapCarousel
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user