Fix looc prefix (#12603)

This commit is contained in:
Leon Friedrich
2022-11-15 17:14:40 +13:00
committed by GitHub
parent 0b5a58001c
commit c6e47c7c61
2 changed files with 5 additions and 20 deletions

View File

@@ -15,7 +15,7 @@ public sealed class ChannelSelectorItemButton : Button
Channel = selector;
AddStyleClass(StyleNano.StyleClassChatChannelSelectorButton);
Text = ChatUIController.GetChannelSelectorName(selector);
var prefix = ChatUIController.GetChannelSelectorPrefix(selector);
var prefix = ChatUIController.ChannelPrefixes[selector];
if (prefix != default) Text = Loc.GetString("hud-chatbox-select-name-prefixed", ("name", Text), ("prefix", prefix));
}
}