2023-08-11 19:26:14 +00:00
|
|
|
Retrieved from
|
|
|
|
https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/development/libraries/qt-6/patches/qtdeclarative-default-disable-qmlcache.patch
|
|
|
|
|
2024-03-13 08:57:59 +00:00
|
|
|
From 2d561e0a80f2d123a7348187975ee845f9dcd9e0 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Nick Cao <nickcao@nichi.co>
|
|
|
|
Date: Tue, 10 Oct 2023 11:12:27 -0400
|
|
|
|
Subject: [PATCH] qtdeclarative: disable qml disk cache
|
|
|
|
|
|
|
|
---
|
|
|
|
src/qml/jsruntime/qv4engine.cpp | 6 +-----
|
|
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
|
2023-08-11 19:26:14 +00:00
|
|
|
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
|
2024-03-13 08:57:59 +00:00
|
|
|
index d1b4c4fff6..50f8a07420 100644
|
2023-08-11 19:26:14 +00:00
|
|
|
--- a/src/qml/jsruntime/qv4engine.cpp
|
|
|
|
+++ b/src/qml/jsruntime/qv4engine.cpp
|
2024-03-13 08:57:59 +00:00
|
|
|
@@ -2232,11 +2232,7 @@ ExecutionEngine::DiskCacheOptions ExecutionEngine::diskCacheOptions() const
|
2023-08-11 19:26:14 +00:00
|
|
|
{
|
2024-03-13 08:57:59 +00:00
|
|
|
if (forceDiskCache())
|
|
|
|
return DiskCache::Enabled;
|
|
|
|
- if (disableDiskCache() || debugger())
|
|
|
|
- return DiskCache::Disabled;
|
|
|
|
- static const DiskCacheOptions options = qmlGetConfigOption<
|
|
|
|
- DiskCacheOptions, transFormDiskCache>("QML_DISK_CACHE");
|
|
|
|
- return options;
|
|
|
|
+ return DiskCache::Disabled;
|
2023-08-11 19:26:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ExecutionEngine::callInContext(QV4::Function *function, QObject *self,
|
2024-03-13 08:57:59 +00:00
|
|
|
--
|
|
|
|
2.42.0
|