Skip to content

Commit

Permalink
Fix not being able to set AvailableMods before loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed May 11, 2022
1 parent 7ac6073 commit 52bbce1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Game/Overlays/Mods/ModColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public IReadOnlyList<ModState> AvailableMods
Debug.Assert(value.All(mod => mod.Mod.Type == ModType));

availableMods = value;
asyncLoadPanels();

if (IsLoaded)
asyncLoadPanels();
}
}

Expand Down Expand Up @@ -249,6 +251,7 @@ protected override void LoadComplete()
base.LoadComplete();

toggleAllCheckbox?.Current.BindValueChanged(_ => updateToggleAllText(), true);
asyncLoadPanels();
}

private void updateToggleAllText()
Expand Down

0 comments on commit 52bbce1

Please sign in to comment.