We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949fa11 commit 3a549abCopy full SHA for 3a549ab
ThirdParty/qwindowkit/src/core/shared/qwkwindowsextra_p.h
@@ -345,11 +345,8 @@ namespace QWK {
345
if (!registry.isValid()) {
346
return false;
347
}
348
- auto value = registry.dwordValue(L"ColorPrevalence");
349
- if (!value.second) {
350
- return false;
351
- }
352
- return value.first;
+ auto value = registry.value<DWORD>(L"ColorPrevalence");
+ return value.value_or(false);
353
354
355
static inline bool isHighContrastModeEnabled() {
0 commit comments