mirror of
https://github.com/ppy/osu.git
synced 2026-05-19 01:49:53 +08:00
Use property expression rather than block
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user