mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 15:07:20 +09: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(
|
beatmapOffsetSubscription = realm.SubscribeToPropertyChanged(
|
||||||
realm => realm.Find<BeatmapInfo>(beatmap.Value.BeatmapInfo.ID)?.UserSettings,
|
realm => realm.Find<BeatmapInfo>(beatmap.Value.BeatmapInfo.ID)?.UserSettings,
|
||||||
settings => settings.Offset,
|
settings => settings.Offset,
|
||||||
val =>
|
val => Current.Value = val);
|
||||||
{
|
|
||||||
Current.Value = val;
|
|
||||||
});
|
|
||||||
|
|
||||||
Current.BindValueChanged(currentChanged);
|
Current.BindValueChanged(currentChanged);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user