Skip to content

Commit

Permalink
- Remove create qml cache and change path to local cache
Browse files Browse the repository at this point in the history
  • Loading branch information
trueromanus committed May 24, 2024
1 parent 853ed12 commit b2441cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Classes/Services/applicationsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@
#include "applicationsettings.h"
#include <QCoreApplication>

#ifdef Q_OS_LINUX
#include <QStandardPaths>
#endif

ApplicationSettings::ApplicationSettings(QObject *parent) : QObject(parent)
{
m_Settings = new QSettings;
#ifdef Q_OS_LINUX
m_Settings = new QSettings(QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + "/AnilibriaDesktopClient.conf", QSettings::IniFormat, this);
#else
m_Settings = new QSettings();
#endif
}

QString ApplicationSettings::userToken()
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@

int main(int argc, char *argv[])
{
qputenv("QML_DISABLE_DISK_CACHE", "1");

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
QQuickWindow::setSceneGraphBackend("opengl");
Expand Down

0 comments on commit b2441cc

Please sign in to comment.