Skip to content

Commit b62d292

Browse files
committed
fix qwindowkit with Qt 6.8.1
1 parent b82a084 commit b62d292

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ThirdParty/qwindowkit/src/core/shared/qwkwindowsextra_p.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,8 @@ namespace QWK {
345345
if (!registry.isValid()) {
346346
return false;
347347
}
348-
auto value = registry.dwordValue(L"ColorPrevalence");
349-
if (!value.second) {
350-
return false;
351-
}
352-
return value.first;
348+
auto value = registry.value<DWORD>(L"ColorPrevalence");
349+
return value.value_or(false);
353350
}
354351

355352
static inline bool isHighContrastModeEnabled() {

0 commit comments

Comments
 (0)