|
|
|
@ -34,11 +34,6 @@
@@ -34,11 +34,6 @@
|
|
|
|
|
#include <algorithm> |
|
|
|
|
#include <chrono> |
|
|
|
|
|
|
|
|
|
#if defined(Q_OS_WIN) |
|
|
|
|
#include <windows.h> |
|
|
|
|
#include <versionhelpers.h> // must follow after windows.h |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#include <QAction> |
|
|
|
|
#include <QActionGroup> |
|
|
|
|
#include <QClipboard> |
|
|
|
@ -1913,13 +1908,7 @@ void MainWindow::installPython()
@@ -1913,13 +1908,7 @@ void MainWindow::installPython()
|
|
|
|
|
{ |
|
|
|
|
setCursor(QCursor(Qt::WaitCursor)); |
|
|
|
|
// Download python
|
|
|
|
|
#ifdef QBT_APP_64BIT |
|
|
|
|
const auto installerURL = u"https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe"_s; |
|
|
|
|
#else |
|
|
|
|
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.8.10/python-3.8.10.exe"_s; |
|
|
|
|
#endif |
|
|
|
|
Net::DownloadManager::instance()->download( |
|
|
|
|
Net::DownloadRequest(installerURL).saveToFile(true) |
|
|
|
|
, Preferences::instance()->useProxyForGeneralPurposes() |
|
|
|
|