1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Remove unnecessary IgnoreUserSettings value change

This commit is contained in:
Dean Herbert 2023-01-25 16:28:06 +09:00
parent f81dea4166
commit 1a9ed1ac3f

View File

@ -133,15 +133,11 @@ namespace osu.Game.Screens.Select
configBackgroundBlur = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur); configBackgroundBlur = config.GetBindable<bool>(OsuSetting.SongSelectBackgoundBlur);
configBackgroundBlur.BindValueChanged(e => configBackgroundBlur.BindValueChanged(e =>
{ {
if (this.IsCurrentScreen()) if (!this.IsCurrentScreen())
{ return;
ApplyToBackground(background =>
{ ApplyToBackground(b => b.BlurAmount.Value = e.NewValue ? BACKGROUND_BLUR : 0);
background.IgnoreUserSettings.Value = true;
background.BlurAmount.Value = e.NewValue ? BACKGROUND_BLUR : 0;
}); });
}
}, true);
LoadComponentAsync(Carousel = new BeatmapCarousel LoadComponentAsync(Carousel = new BeatmapCarousel
{ {