Replace getThemedIcon with APPLICATION->logo()

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2025-09-19 00:03:22 +01:00
parent 1724bdaeb9
commit cd4f119e4b
67 changed files with 93 additions and 133 deletions

View File

@@ -36,6 +36,7 @@
#include "ModrinthModel.h"
#include "Application.h"
#include "BuildConfig.h"
#include "Json.h"
#include "modplatform/ModIndex.h"
@@ -91,7 +92,7 @@ auto ModpackListModel::data(const QModelIndex& index, int role) const -> QVarian
if (m_logoMap.contains(pack->logoName))
return m_logoMap.value(pack->logoName);
QIcon icon = APPLICATION->getThemedIcon("screenshot-placeholder");
QIcon icon = QIcon::fromTheme("screenshot-placeholder");
((ModpackListModel*)this)->requestLogo(pack->logoName, pack->logoUrl);
return icon;
}