Fix issues found by code quality ci

This commit is contained in:
AbstractQbit 2021-09-15 12:01:56 +03:00
parent 9b101ea9eb
commit 1181317c72
3 changed files with 5 additions and 9 deletions

View File

@ -129,6 +129,8 @@ private class DisallowScreen : OsuScreen
public override bool? AllowTrackAdjustments => false;
}
private class InheritScreen : OsuScreen { }
private class InheritScreen : OsuScreen
{
}
}
}

View File

@ -62,7 +62,7 @@ public interface IOsuScreen : IScreen
/// Whether mod track adjustments are allowed to be applied.
/// A <see langword="null"/> value means that the parent screen's value of this setting will be used.
/// </summary>
bool? AllowTrackAdjustments { set; get; }
bool? AllowTrackAdjustments { get; set; }
/// <summary>
/// Invoked when the back button has been pressed to close any overlays before exiting this <see cref="IOsuScreen"/>.

View File

@ -81,13 +81,7 @@ public abstract class OsuScreen : Screen, IOsuScreen, IHasDescription
public virtual float BackgroundParallaxAmount => 1;
private bool? allowTrackAdjustments = null;
public virtual bool? AllowTrackAdjustments
{
set => allowTrackAdjustments = value;
get => allowTrackAdjustments;
}
public virtual bool? AllowTrackAdjustments { get; set; }
public Bindable<WorkingBeatmap> Beatmap { get; private set; }