mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
@@ -29,9 +29,16 @@
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#include <Windows.h>
|
||||
#include <versionhelpers.h> // must follow after Windows.h
|
||||
#endif
|
||||
|
||||
#include <QActionGroup>
|
||||
#include <QClipboard>
|
||||
#include <QCloseEvent>
|
||||
@@ -1962,9 +1969,13 @@ void MainWindow::installPython()
|
||||
setCursor(QCursor(Qt::WaitCursor));
|
||||
// Download python
|
||||
#ifdef QBT_APP_64BIT
|
||||
const auto installerURL = u"https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe"_qs;
|
||||
const auto installerURL = ::IsWindows8OrGreater()
|
||||
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_qs
|
||||
: u"https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe"_qs;
|
||||
#else
|
||||
const auto installerURL = u"https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe"_qs;
|
||||
const auto installerURL = ::IsWindows8OrGreater()
|
||||
? u"https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe"_qs
|
||||
: u"https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe"_qs;
|
||||
#endif
|
||||
Net::DownloadManager::instance()->download(
|
||||
Net::DownloadRequest(installerURL).saveToFile(true)
|
||||
|
||||
Reference in New Issue
Block a user