mirror of
https://github.com/ppy/osu
synced 2024-12-17 12:25:19 +00: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;
|
||||
if (!this.IsCurrentScreen())
|
||||
return;
|
||||
|
||||
ApplyToBackground(b => b.BlurAmount.Value = e.NewValue ? BACKGROUND_BLUR : 0);
|
||||
});
|
||||
}
|
||||
}, true);
|
||||
|
||||
LoadComponentAsync(Carousel = new BeatmapCarousel
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user