mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:33:20 +08:00
Fix potential nullref
This commit is contained in:
parent
849629708b
commit
5e72ed0d12
@ -71,8 +71,11 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
// Scheduled to allow the flow layout to be computed before the line position is updated
|
// Scheduled to allow the flow layout to be computed before the line position is updated
|
||||||
private void moveLineToCurrent() => ScheduleAfterChildren(() =>
|
private void moveLineToCurrent() => ScheduleAfterChildren(() =>
|
||||||
{
|
{
|
||||||
ModeButtonLine.MoveToX(SelectedTab.DrawPosition.X, !hasInitialPosition ? 0 : 200, Easing.OutQuint);
|
if (SelectedTab != null)
|
||||||
hasInitialPosition = true;
|
{
|
||||||
|
ModeButtonLine.MoveToX(SelectedTab.DrawPosition.X, !hasInitialPosition ? 0 : 200, Easing.OutQuint);
|
||||||
|
hasInitialPosition = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;
|
public override bool HandleNonPositionalInput => !Current.Disabled && base.HandleNonPositionalInput;
|
||||||
|
Loading…
Reference in New Issue
Block a user