Skip to content

Commit

Permalink
Remove nullable disables
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Jul 3, 2022
1 parent 052a786 commit 724fd19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

#nullable disable
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Game.Screens.Select;
Expand Down
9 changes: 4 additions & 5 deletions osu.Game/Screens/Select/DifficultyRangeFilterControl.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.

#nullable disable
using System;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
Expand All @@ -21,8 +20,8 @@ namespace osu.Game.Screens.Select
{
internal class DifficultyRangeFilterControl : CompositeDrawable
{
private Bindable<double> lowerStars;
private Bindable<double> upperStars;
private Bindable<double> lowerStars = null!;
private Bindable<double> upperStars = null!;

[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
Expand Down Expand Up @@ -97,8 +96,6 @@ public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) =>

private class StarsSlider : OsuSliderBar<double>
{
private OsuSpriteText currentDisplay;

public override LocalisableString TooltipText => Current.IsDefault
? UserInterfaceStrings.NoLimit
: Current.Value.ToString(@"0.## stars");
Expand All @@ -115,6 +112,8 @@ protected override void LoadComplete()
Nub.Width = Nub.HEIGHT;
RangePadding = Nub.Width / 2;

OsuSpriteText currentDisplay;

Nub.Add(currentDisplay = new OsuSpriteText
{
Anchor = Anchor.Centre,
Expand Down

0 comments on commit 724fd19

Please sign in to comment.