1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 22:30:53 +08:00

Use property expression rather than block

This commit is contained in:
Bartłomiej Dach
2022-03-03 20:28:00 +01:00
Unverified
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);
}