diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2024-05-10 09:31:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-10 16:31:43 +0200 |
| commit | 951766666621fa77e257e6b5616fe4ab1eb2a52f (patch) | |
| tree | b47c7d27a91cee606069abddf12cae7bf4718fed | |
| parent | f2cf70232e015630bdc097381527dd70e8f06fb9 (diff) | |
Use the static image lookup for char_icons (#954)
| -rw-r--r-- | src/aocharbutton.cpp | 2 | ||||
| -rw-r--r-- | src/charselect.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/aocharbutton.cpp b/src/aocharbutton.cpp index 1c9193c9..4f00e3c8 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 3fc96546..443c1f20 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; |
