summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-25 01:46:18 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-25 01:47:38 +0100
commit0839c641506c4624f392917c5c7ab278aa5a06ba (patch)
treee3454e1571908648f693c8671c28309382690d08 /src
parentMerge pull request #1389 from Nheko-Reborn/deletions (diff)
downloadnheko-0839c641506c4624f392917c5c7ab278aa5a06ba.tar.xz
Disable qml diskcache by default
Since this causes crashes on some qml module updates.

Fixes #1383
Fixes #1132
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp

index 44d0dd64..90e1cb4c 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -157,6 +157,12 @@ main(int argc, char *argv[]) QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + // Disable the qml disk cache by default to prevent crashes on updates. See + // https://github.com/Nheko-Reborn/nheko/issues/1383 + if (qgetenv("NHEKO_ALLOW_QML_DISK_CACHE").size() == 0) { + qputenv("QML_DISABLE_DISK_CACHE", "1"); + } + // this needs to be after setting the application name. Or how would we find our settings // file then? #if !defined(Q_OS_MACOS)