Skip to content

Commit

Permalink
Fix item labels not generated while dropdown is in Ready state
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Jun 19, 2023
1 parent 73a2f02 commit 80ccd63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Framework/Graphics/UserInterface/Dropdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ private void addDropdownItem(T value)
Menu.State = MenuState.Closed;
});

// inheritors expect that `virtual GenerateItemText` is only called when this dropdown is fully loaded.
if (IsLoaded)
// inheritors expect that `virtual GenerateItemText` is only called when this dropdown finishes from BDL.
if (LoadState >= LoadState.Ready)
item.Text.Value = GenerateItemText(value);

Menu.Add(item);
Expand Down

0 comments on commit 80ccd63

Please sign in to comment.