1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Trigger lock update on loading.

This commit is contained in:
Lucas A 2020-10-19 10:01:24 +02:00
parent 371aecfca0
commit cd7c3021ca

View File

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