Browse Source

Display correct Minimum Python requirement

PR #19281.
adaptive-webui-19844
xavier2k6 1 year ago committed by GitHub
parent
commit
fb68604ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/gui/mainwindow.cpp

4
src/gui/mainwindow.cpp

@ -1719,14 +1719,14 @@ void MainWindow::on_actionSearchWidget_triggered() @@ -1719,14 +1719,14 @@ void MainWindow::on_actionSearchWidget_triggered()
#ifdef Q_OS_WIN
const QMessageBox::StandardButton buttonPressed = QMessageBox::question(this, tr("Old Python Runtime")
, tr("Your Python version (%1) is outdated. Minimum requirement: %2.\nDo you want to install a newer version now?")
.arg(pyInfo.version.toString(), u"3.5.0")
.arg(pyInfo.version.toString(), u"3.7.0")
, (QMessageBox::Yes | QMessageBox::No), QMessageBox::Yes);
if (buttonPressed == QMessageBox::Yes)
installPython();
#else
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: %2.")
.arg(pyInfo.version.toString(), u"3.5.0"));
.arg(pyInfo.version.toString(), u"3.7.0"));
#endif
return;
}

Loading…
Cancel
Save