fix(updater): remove Windows version check

Qt 5.12 doesn't support anything older than Windows 7 anyway, so we
can't really check if we are on an older platform.
This commit is contained in:
Sefa Eyeoglu 2022-02-04 15:31:49 +01:00
parent c1700054f4
commit cc27bb3231
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -138,20 +138,6 @@ void UpdateController::installUpdates()
} }
#endif #endif
QFileInfo destination (FS::PathCombine(m_root, op.destination)); QFileInfo destination (FS::PathCombine(m_root, op.destination));
#ifdef Q_OS_WIN32
if(QSysInfo::windowsVersion() < QSysInfo::WV_VISTA)
{
if(destination.fileName() == windowsExeName)
{
QDir rootDir(m_root);
exeOrigin = rootDir.relativeFilePath(op.source);
exePath = rootDir.relativeFilePath(op.destination);
exeBackup = rootDir.relativeFilePath(FS::PathCombine(backupPath, destination.fileName()));
useXPHack = true;
continue;
}
}
#endif
if(destination.exists()) if(destination.exists())
{ {
QString backupName = op.destination; QString backupName = op.destination;