Skip to content

Commit

Permalink
Fixed bug with icons not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
ModdingPink committed Jul 19, 2023
1 parent f00ae79 commit 919c09a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ private static void Postfix(IReadOnlyList<IDifficultyBeatmapSet> difficultyBeatm

if (detail != null)
{
Sprite sprite = Utilities.Utils.LoadSpriteFromFile(Path.Combine(level.customLevelPath, detail._characteristicIconFilePath)) ?? characteristic.icon;
Sprite sprite = characteristic.icon;
if (detail._characteristicIconFilePath != null)
sprite = Utilities.Utils.LoadSpriteFromFile(Path.Combine(level.customLevelPath, detail._characteristicIconFilePath)) ?? characteristic.icon;
string label = detail._characteristicLabel ?? Polyglot.Localization.Get(characteristic.descriptionLocalizationKey);
newDataItems.Add(new IconSegmentedControl.DataItem(sprite, label));
}
Expand Down

0 comments on commit 919c09a

Please sign in to comment.