Use the static image lookup for char_icons (#954)

This commit is contained in:
in1tiate 2024-05-10 09:31:43 -05:00 committed by GitHub
parent f2cf70232e
commit 9517666666
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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("");

View File

@ -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;