mirror of
https://github.com/ppy/osu
synced 2024-12-14 02:46:27 +00: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;
|
||||
|
||||
@ -281,11 +281,11 @@ namespace osu.Game
|
||||
if (notifications.State == Visibility.Visible)
|
||||
offset -= ToolbarButton.WIDTH / 2;
|
||||
|
||||
intro.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
||||
};
|
||||
screenStack.MoveToX(offset, SettingsOverlay.TRANSITION_LENGTH, Easing.OutQuint);
|
||||
}
|
||||
|
||||
settings.StateChanged += stateChanged;
|
||||
notifications.StateChanged += stateChanged;
|
||||
settings.StateChanged += _ => updateScreenOffset();
|
||||
notifications.StateChanged += _ => updateScreenOffset();
|
||||
|
||||
Cursor.State = Visibility.Hidden;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user