Merge pull request #461 from flowln/fix_big_resource_pack_imgs

Fixes https://github.com/PrismLauncher/PrismLauncher/issues/360
This commit is contained in:
flow
2022-12-11 04:16:21 -08:00
committed by GitHub
4 changed files with 114 additions and 3 deletions

View File

@ -97,6 +97,7 @@
#include <QIcon>
#include "InstanceList.h"
#include "MTPixmapCache.h"
#include <minecraft/auth/AccountList.h>
#include "icons/IconList.h"
@ -141,6 +142,8 @@
static const QLatin1String liveCheckFile("live.check");
PixmapCache* PixmapCache::s_instance = nullptr;
namespace {
void appDebugOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
@ -693,6 +696,9 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
m_globalSettingsProvider->addPage<AccountListPage>();
m_globalSettingsProvider->addPage<APIPage>();
}
PixmapCache::setInstance(new PixmapCache(this));
qDebug() << "<> Settings loaded.";
}