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:
parent
f81dea4166
commit
1a9ed1ac3f
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user