mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 17:52:56 +08:00
Use property expression rather than block
This commit is contained in:
parent
edd361d256
commit
2e24e7ef56
@ -96,10 +96,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
||||
beatmapOffsetSubscription = realm.SubscribeToPropertyChanged(
|
||||
realm => realm.Find<BeatmapInfo>(beatmap.Value.BeatmapInfo.ID)?.UserSettings,
|
||||
settings => settings.Offset,
|
||||
val =>
|
||||
{
|
||||
Current.Value = val;
|
||||
});
|
||||
val => Current.Value = val);
|
||||
|
||||
Current.BindValueChanged(currentChanged);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user