1
0
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:
Bartłomiej Dach 2022-03-03 20:28:00 +01:00
parent edd361d256
commit 2e24e7ef56
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -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);
}