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:
parent
c1700054f4
commit
cc27bb3231
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user