aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-09-20 18:01:43 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2022-09-21 15:00:28 +0200
commit777ab3416f12c620daf111fb57ac357f5fc2af46 (patch)
treebe6c8deff283456764d12a7e6189a7cd4431d24e /launcher/ui
parentecf5ab75e7bbac8200cd1c4f9dd446380a365583 (diff)
downloadPrismLauncher-777ab3416f12c620daf111fb57ac357f5fc2af46.tar.gz
PrismLauncher-777ab3416f12c620daf111fb57ac357f5fc2af46.tar.bz2
PrismLauncher-777ab3416f12c620daf111fb57ac357f5fc2af46.zip
feat: also format resource/texture pack names
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/ui')
-rw-r--r--launcher/ui/widgets/InfoFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/widgets/InfoFrame.cpp b/launcher/ui/widgets/InfoFrame.cpp
index 37c807ad..fdc581b4 100644
--- a/launcher/ui/widgets/InfoFrame.cpp
+++ b/launcher/ui/widgets/InfoFrame.cpp
@@ -160,14 +160,14 @@ QString InfoFrame::renderColorCodes(QString input) {
void InfoFrame::updateWithResourcePack(ResourcePack& resource_pack)
{
- setName(resource_pack.name());
+ setName(renderColorCodes(resource_pack.name()));
setDescription(renderColorCodes(resource_pack.description()));
setImage(resource_pack.image({64, 64}));
}
void InfoFrame::updateWithTexturePack(TexturePack& texture_pack)
{
- setName(texture_pack.name());
+ setName(renderColorCodes(texture_pack.name()));
setDescription(renderColorCodes(texture_pack.description()));
setImage(texture_pack.image({64, 64}));
}