no extra 64bit logic needed

This commit is contained in:
tooomm 2026-07-08 11:27:45 +02:00 committed by GitHub
parent d90e5263e0
commit 69dd6b1337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,6 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)
return 13;
}
}
return QSysInfo::productVersion().split(".")[0].toInt();
};
@ -75,15 +74,10 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName)
return rel_maj == sys_maj;
#elif defined(Q_OS_WIN)
#if Q_PROCESSOR_WORDSIZE == 8 // 64-bit
const QString &version = QSysInfo::productVersion();
if (version.startsWith("10")) {
return fileName.contains("Win10");
}
#else
Q_UNUSED(fileName);
return false;
#endif
#else // If the OS doesn't fit one of the above #defines, then it will never match
Q_UNUSED(fileName);