Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
0839c641
Verified
Commit
0839c641
authored
2 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Disable qml diskcache by default
Since this causes crashes on some qml module updates. Fixes #1383 Fixes #1132
parent
952afc8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4479
passed
2 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
man/nheko.1.adoc
+6
-0
6 additions, 0 deletions
man/nheko.1.adoc
src/main.cpp
+6
-0
6 additions, 0 deletions
src/main.cpp
with
12 additions
and
0 deletions
man/nheko.1.adoc
+
6
−
0
View file @
0839c641
...
...
@@ -272,6 +272,12 @@ Hide text and set an optional spoiler warning. Note that Nheko does not display
the spoiler warning currently. HTML output:
`<span data-mx-spoiler="spoiler">text</span>`
== ENVIRONMENT
*NHEKO_ALLOW_QML_DISK_CACHE*::
Nheko by default disables the qml disk cache to prevent crashes. This allows
you to reenable it at your own risk.
== FILES
*Configuration file*::
...
...
This diff is collapsed.
Click to expand it.
src/main.cpp
+
6
−
0
View file @
0839c641
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment