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)
|