mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Update with framework bindable changes
This commit is contained in:
@ -40,7 +40,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
{
|
||||
beatmaps.ItemAdded += beatmapAdded;
|
||||
|
||||
Beatmap.BindValueChanged(updateBeatmap, true);
|
||||
Beatmap.BindValueChanged(e => updateBeatmap(e.NewValue), true);
|
||||
}
|
||||
|
||||
private void updateBeatmap(BeatmapInfo beatmap)
|
||||
@ -77,7 +77,7 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
return;
|
||||
}
|
||||
|
||||
bool hasEnoughTime = DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(gameBeatmap.Value.Track.Length) < endDate;
|
||||
bool hasEnoughTime = DateTimeOffset.UtcNow.AddSeconds(30).AddMilliseconds(gameBeatmap.Value.Track.Length) < endDate.Value;
|
||||
|
||||
Enabled.Value = hasBeatmap && hasEnoughTime;
|
||||
}
|
||||
|
Reference in New Issue
Block a user