Skip to content

Conversation

@nilsding
Copy link
Member

Utility::registryGetKeyValue returns an invalid QVariant should the key not exist -- which is the case if that switch has never been toggled before.

--> Fix this by ensuring the QVariant is valid, and only then try to convert it to a bool.

Tested on Windows Server 2019, which is close enough to Win10 I think.

@nilsding nilsding added this to the 3.16.3 milestone Apr 15, 2025
@nilsding nilsding self-assigned this Apr 15, 2025
@nilsding
Copy link
Member Author

/backport to stable-3.16

`Utility::registryGetKeyValue` returns an invalid QVariant should the
key not exist -- which is the case if that switch has never been toggled
before.

--> Fix this by ensuring the QVariant is valid, and only then try to
convert it to a bool.

Signed-off-by: Jyrki Gadinger <[email protected]>
@nilsding nilsding force-pushed the bugfix/win10-darkmode-strikes-back branch from ca53dd5 to 2a3b5be Compare April 15, 2025 10:10
@nilsding nilsding enabled auto-merge April 15, 2025 10:10
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8156.zip

SHA256 checksum: 119aeef17bca1c71e44e88bc0f3e0d80bea5ad479f64730ef2be5a519467fba4

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)
7 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@nilsding nilsding merged commit 9d93050 into master Apr 15, 2025
16 of 18 checks passed
@nilsding nilsding deleted the bugfix/win10-darkmode-strikes-back branch April 15, 2025 11:41
@nilsding nilsding modified the milestones: 3.16.3, 3.17.0 Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants