mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 14:47:18 +08:00
Merge pull request #1752 from peppy/fix-null-ref
Fix null reference in release builds
This commit is contained in:
commit
c292b2c64f
@ -272,7 +272,7 @@ namespace osu.Game
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Action<Visibility> stateChanged = delegate
|
void updateScreenOffset()
|
||||||
{
|
{
|
||||||
float offset = 0;
|
float offset = 0;
|
||||||
|
|
||||||
@ -281,11 +281,11 @@ namespace osu.Game
|
|||||||
if (notifications.State == Visibility.Visible)
|
if (notifications.State == Visibility.Visible)
|
||||||
offset -= ToolbarButton.WIDTH / 2;
|
offset -= ToolbarButton.WIDTH / 2;
|
||||||
|
|
||||||
intro.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
screenStack.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
||||||
};
|
}
|
||||||
|
|
||||||
settings.StateChanged += stateChanged;
|
settings.StateChanged += _ => updateScreenOffset();
|
||||||
notifications.StateChanged += stateChanged;
|
notifications.StateChanged += _ => updateScreenOffset();
|
||||||
|
|
||||||
Cursor.State = Visibility.Hidden;
|
Cursor.State = Visibility.Hidden;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user