1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Subscribe to event handler instead.

This commit is contained in:
Lucas A 2020-10-18 19:42:05 +02:00
parent b60dfc55b6
commit 9cd595800a

View File

@ -17,7 +17,7 @@ namespace osu.Android
private void load(OsuGame game)
{
localUserPlaying = game.LocalUserPlaying.GetBoundCopy();
localUserPlaying.BindValueChanged(userPlaying => updateLock(userPlaying));
localUserPlaying.ValueChanged += updateLock;
}
private void updateLock(ValueChangedEvent<bool> userPlaying)