Move default `IgnoreUserSettings` value to construction

This commit is contained in:
Salman Ahmed 2021-04-15 08:04:03 +03:00
parent 92fd34cea9
commit 6c5234f8da
1 changed files with 5 additions and 5 deletions

View File

@ -27,9 +27,12 @@ public class BackgroundScreenBeatmap : BackgroundScreen
private WorkingBeatmap beatmap;
/// <summary>
/// Whether or not user-configured settings relating to brightness of elements should be ignored
/// Whether or not user-configured settings relating to brightness of elements should be ignored.
/// </summary>
public readonly Bindable<bool> IgnoreUserSettings = new Bindable<bool>();
/// <remarks>
/// Beatmap background screens should not apply user settings by default.
/// </remarks>
public readonly Bindable<bool> IgnoreUserSettings = new Bindable<bool>(true);
public readonly Bindable<bool> StoryboardReplacesBackground = new Bindable<bool>();
@ -50,9 +53,6 @@ public BackgroundScreenBeatmap(WorkingBeatmap beatmap = null)
InternalChild = dimmable = CreateFadeContainer();
// Beatmap background screens should not apply user settings by default.
IgnoreUserSettings.Value = true;
dimmable.IgnoreUserSettings.BindTo(IgnoreUserSettings);
dimmable.IsBreakTime.BindTo(IsBreakTime);
dimmable.BlurAmount.BindTo(BlurAmount);