diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-06-03 13:39:42 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-06-03 13:39:42 +0100 |
commit | e26827b84922d7d84c3ee83dfed58759b1c0ca15 (patch) | |
tree | 0ef6e3cb4505e3f15519937596896102463cbc23 /launcher/ui/dialogs/ExportMrPackDialog.cpp | |
parent | 86974b046ee0b232b07e3a28cbc1e954d88dd40f (diff) | |
download | PrismLauncher-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.cpp | 3 |
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); |