Commit 2a3b5be
committed
fix(theme): correct dark/light mode check on Win10
`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]>1 parent 537fc38 commit 2a3b5be
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
| |||
0 commit comments