ISO: Move load_icon

This commit is contained in:
Functionable
2026-01-09 01:28:36 +00:00
committed by Elad
parent a53f2fc7b9
commit 49bcc93072
+5 -5
View File
@@ -434,6 +434,11 @@ void savestate_manager_dialog::ResizeGameIcons()
{ {
if (!item->data(GameUserRole::GamePixmapLoaded).toBool()) if (!item->data(GameUserRole::GamePixmapLoaded).toBool())
{ {
if (!archive_path.empty())
{
gui::utils::load_icon(icon, icon_path, archive_path);
}
// Load game icon // Load game icon
if (!icon.load(QString::fromStdString(icon_path))) if (!icon.load(QString::fromStdString(icon_path)))
{ {
@@ -448,11 +453,6 @@ void savestate_manager_dialog::ResizeGameIcons()
} }
} }
if (!archive_path.empty())
{
gui::utils::load_icon(icon, icon_path, archive_path);
}
if (cancel && cancel->load()) if (cancel && cancel->load())
{ {
return; return;