diff options
author | flow <flowlnlnln@gmail.com> | 2022-06-19 23:01:31 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-06-21 06:41:56 -0300 |
commit | a135c06bcfb70da4a74d1ba671f8dff04e199dc5 (patch) | |
tree | ef67248fc078298a21aba2f3216771ea17096aaf /launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp | |
parent | 03e454b71d83aebbb534c5734ccd9093842da28c (diff) | |
download | PrismLauncher-a135c06bcfb70da4a74d1ba671f8dff04e199dc5.tar.gz PrismLauncher-a135c06bcfb70da4a74d1ba671f8dff04e199dc5.tar.bz2 PrismLauncher-a135c06bcfb70da4a74d1ba671f8dff04e199dc5.zip |
fix: scale mod icons to the right size
Diffstat (limited to 'launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp index 07d1687c..a0050e50 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp @@ -87,6 +87,7 @@ auto ModpackListModel::data(const QModelIndex& index, int role) const -> QVarian } else if (role == Qt::DecorationRole) { if (m_logoMap.contains(pack.iconName)) { auto icon = m_logoMap.value(pack.iconName); + // FIXME: This doesn't really belong here, but Qt doesn't offer a good way right now ;( auto icon_scaled = QIcon(icon.pixmap(48, 48).scaledToWidth(48)); return icon_scaled; |