mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-16 21:30:06 +00:00
Remove manual qmlcachegen invocation for internal Qt QML files
It's not safe to always assume we can always precompile everything. Instead set QML_CACHE_DIR to ensure the files go to our desired location.
This commit is contained in:
@@ -301,6 +301,11 @@ int main(int argc, char *argv[])
|
||||
Path::initialize(false);
|
||||
}
|
||||
|
||||
// Override the default QML cache directory with the one we chose
|
||||
if (qEnvironmentVariableIsEmpty("QML_DISK_CACHE_PATH")) {
|
||||
qputenv("QML_DISK_CACHE_PATH", Path::getQmlCacheDir().toUtf8());
|
||||
}
|
||||
|
||||
#ifdef USE_CUSTOM_LOGGER
|
||||
#ifdef LOG_TO_FILE
|
||||
QDir tempDir(Path::getLogDir());
|
||||
|
||||
Reference in New Issue
Block a user