Skip to content

Commit

Permalink
Fix criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
MATRIX-feather committed Sep 8, 2024
1 parent be87c05 commit 30dea81
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@ public partial class LLinSongSelect : Game.Screens.Select.SongSelect
[BackgroundDependencyLoader]
private void load()
{
this.FilterControl.FilterChanged = this.ApplyFilterToCarousel;

musicController.CurrentTrack.Looping = true;
Beatmap.BindValueChanged(v =>
{
startFromZero.Value = !enteringBeatmap.BeatmapSetInfo.Equals(v.NewValue.BeatmapSetInfo);
});
}

protected override void LoadComplete()
{
this.FilterControl.FilterChanged = this.ApplyFilterToCarousel;
this.ApplyFilterToCarousel(new FilterCriteria());

base.LoadComplete();
}

protected void ApplyFilterToCarousel(FilterCriteria criteria)
{
criteria.RulesetCriteria = null;
Expand Down

0 comments on commit 30dea81

Please sign in to comment.