1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +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.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
{