mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 13:58:51 +03:00
Drop support for Windows < 10
This commit is contained in:
parent
de2ba53f08
commit
9b924c1931
2 changed files with 2 additions and 16 deletions
|
@ -1914,9 +1914,7 @@ void MainWindow::installPython()
|
||||||
setCursor(QCursor(Qt::WaitCursor));
|
setCursor(QCursor(Qt::WaitCursor));
|
||||||
// Download python
|
// Download python
|
||||||
#ifdef QBT_APP_64BIT
|
#ifdef QBT_APP_64BIT
|
||||||
const auto installerURL = ::IsWindows8OrGreater()
|
const auto installerURL = u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_s;
|
||||||
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_s
|
|
||||||
: u"https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe"_s;
|
|
||||||
#else
|
#else
|
||||||
const auto installerURL = ::IsWindows8OrGreater()
|
const auto installerURL = ::IsWindows8OrGreater()
|
||||||
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe"_s
|
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe"_s
|
||||||
|
|
|
@ -30,21 +30,11 @@
|
||||||
#include "programupdater.h"
|
#include "programupdater.h"
|
||||||
|
|
||||||
#include <QtSystemDetection>
|
#include <QtSystemDetection>
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
#include <windows.h>
|
|
||||||
#include <versionhelpers.h> // must follow after windows.h
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
#include <QSysInfo>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "base/global.h"
|
#include "base/global.h"
|
||||||
#include "base/net/downloadmanager.h"
|
#include "base/net/downloadmanager.h"
|
||||||
#include "base/preferences.h"
|
#include "base/preferences.h"
|
||||||
|
@ -110,9 +100,7 @@ void ProgramUpdater::rssDownloadFinished(const Net::DownloadResult &result)
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
const QString OS_TYPE = u"Mac OS X"_s;
|
const QString OS_TYPE = u"Mac OS X"_s;
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
const QString OS_TYPE = (::IsWindows7OrGreater() && QSysInfo::currentCpuArchitecture().endsWith(u"64"))
|
const QString OS_TYPE = u"Windows x64"_s;
|
||||||
? u"Windows x64"_s
|
|
||||||
: u"Windows"_s;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool inItem = false;
|
bool inItem = false;
|
||||||
|
|
Loading…
Reference in a new issue