From f2ba596164111a731e75da55cd8cab2af3e649ea Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 3 Sep 2022 14:20:37 +1000 Subject: [PATCH] Qt: Fix theme change resetting cover scale --- src/duckstation-qt/gamelistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duckstation-qt/gamelistmodel.cpp b/src/duckstation-qt/gamelistmodel.cpp index 0a495ea9b..72495bf3e 100644 --- a/src/duckstation-qt/gamelistmodel.cpp +++ b/src/duckstation-qt/gamelistmodel.cpp @@ -115,6 +115,7 @@ GameListModel::GameListModel(QObject* parent /* = nullptr */) : QAbstractTableModel(parent), m_cover_pixmap_cache(MIN_COVER_CACHE_SIZE) { loadCommonImages(); + setCoverScale(1.0f); setColumnDisplayNames(); } GameListModel::~GameListModel() = default; @@ -560,7 +561,6 @@ void GameListModel::loadCommonImages() m_compatibility_pixmaps[i] = QtUtils::GetIconForCompatibility(static_cast(i)).pixmap(96, 24); m_placeholder_pixmap.load(QStringLiteral("%1/images/cover-placeholder.png").arg(QtHost::GetResourcesBasePath())); - setCoverScale(1.0f); } void GameListModel::setColumnDisplayNames()