From a1ec2304bb14e7f898a9e476a533e443fb8b5863 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Fri, 10 May 2024 09:22:42 -0500 Subject: [PATCH] Use the static image lookup for char_icons --- src/aocharbutton.cpp | 2 +- src/charselect.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/aocharbutton.cpp b/src/aocharbutton.cpp index 1c9193c93..4f00e3c84 100644 --- a/src/aocharbutton.cpp +++ b/src/aocharbutton.cpp @@ -64,7 +64,7 @@ void AOCharButton::set_passworded() { ui_passworded->show(); } void AOCharButton::set_image(QString p_character) { QString image_path = ao_app->get_image_suffix( - ao_app->get_character_path(p_character, "char_icon")); + ao_app->get_character_path(p_character, "char_icon"), true); this->setText(""); diff --git a/src/charselect.cpp b/src/charselect.cpp index 3fc965465..443c1f20e 100644 --- a/src/charselect.cpp +++ b/src/charselect.cpp @@ -304,8 +304,10 @@ void Courtroom::character_loading_finished() // create the character tree item QTreeWidgetItem *treeItem = new QTreeWidgetItem(); treeItem->setText(0, char_list.at(n).name); - treeItem->setIcon(0, QIcon(ao_app->get_image_suffix( - ao_app->get_character_path(char_list.at(n).name, "char_icon")))); + treeItem->setIcon( + 0, QIcon(ao_app->get_image_suffix( + ao_app->get_character_path(char_list.at(n).name, "char_icon"), + true))); treeItem->setText(1, QString::number(n)); // category logic QTreeWidgetItem *category;