mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 23:37:59 +00:00
Make Python minimum version requirement an argument
This commit is contained in:
parent
4b78af268f
commit
a92a6404cb
@ -1887,15 +1887,15 @@ void MainWindow::on_actionSearchWidget_triggered()
|
|||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime")
|
const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime")
|
||||||
, tr("Your Python version (%1) is outdated. Minimum requirement: 3.5.0.\nDo you want to install a newer version now?")
|
, tr("Your Python version (%1) is outdated. Minimum requirement: %2.\nDo you want to install a newer version now?")
|
||||||
.arg(pyInfo.version)
|
.arg(pyInfo.version, QLatin1String("3.5.0"))
|
||||||
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
|
||||||
if (buttonPressed == QMessageBox::Yes)
|
if (buttonPressed == QMessageBox::Yes)
|
||||||
installPython();
|
installPython();
|
||||||
#else
|
#else
|
||||||
QMessageBox::information(this, tr("Old Python Runtime")
|
QMessageBox::information(this, tr("Old Python Runtime")
|
||||||
, tr("Your Python version (%1) is outdated. Please upgrade to latest version for search engines to work.\nMinimum requirement: 3.3.0.")
|
, tr("Your Python version (%1) is outdated. Please upgrade to latest version for search engines to work.\nMinimum requirement: %2.")
|
||||||
.arg(pyInfo.version));
|
.arg(pyInfo.version, QLatin1String("3.5.0")));
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user