aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs/ExportMrPackDialog.cpp
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-06-03 13:39:42 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-06-03 13:39:42 +0100
commite26827b84922d7d84c3ee83dfed58759b1c0ca15 (patch)
tree0ef6e3cb4505e3f15519937596896102463cbc23 /launcher/ui/dialogs/ExportMrPackDialog.cpp
parent86974b046ee0b232b07e3a28cbc1e954d88dd40f (diff)
downloadPrismLauncher-e26827b84922d7d84c3ee83dfed58759b1c0ca15.tar.gz
PrismLauncher-e26827b84922d7d84c3ee83dfed58759b1c0ca15.tar.bz2
PrismLauncher-e26827b84922d7d84c3ee83dfed58759b1c0ca15.zip
Optimised icons
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/dialogs/ExportMrPackDialog.cpp')
-rw-r--r--launcher/ui/dialogs/ExportMrPackDialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ExportMrPackDialog.cpp b/launcher/ui/dialogs/ExportMrPackDialog.cpp
index 1551cc60..06e4693e 100644
--- a/launcher/ui/dialogs/ExportMrPackDialog.cpp
+++ b/launcher/ui/dialogs/ExportMrPackDialog.cpp
@@ -26,6 +26,7 @@
#include <QFileSystemModel>
#include <QJsonDocument>
#include <QMessageBox>
+#include "FastFileIconProvider.h"
#include "FileSystem.h"
#include "MMCZip.h"
#include "modplatform/modrinth/ModrinthPackExportTask.h"
@@ -38,6 +39,8 @@ ExportMrPackDialog::ExportMrPackDialog(InstancePtr instance, QWidget* parent)
ui->summary->setText(instance->notes().split(QRegularExpression("\\r?\\n"))[0]);
QFileSystemModel* model = new QFileSystemModel(this);
+ model->setIconProvider(&icons);
+
// use the game root - everything outside cannot be exported
const QDir root(instance->gameRoot());
proxy = new FileIgnoreProxy(instance->gameRoot(), this);