mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Allow users to specify Python executable path
Closes #19195. PR #19644.
This commit is contained in:
@@ -1635,11 +1635,11 @@ void MainWindow::on_actionRSSReader_triggered()
|
||||
|
||||
void MainWindow::on_actionSearchWidget_triggered()
|
||||
{
|
||||
if (!m_hasPython && m_ui->actionSearchWidget->isChecked())
|
||||
if (m_ui->actionSearchWidget->isChecked())
|
||||
{
|
||||
const Utils::ForeignApps::PythonInfo pyInfo = Utils::ForeignApps::pythonInfo();
|
||||
|
||||
// Not installed
|
||||
// Not found
|
||||
if (!pyInfo.isValid())
|
||||
{
|
||||
m_ui->actionSearchWidget->setChecked(false);
|
||||
@@ -1679,7 +1679,6 @@ void MainWindow::on_actionSearchWidget_triggered()
|
||||
return;
|
||||
}
|
||||
|
||||
m_hasPython = true;
|
||||
m_ui->actionSearchWidget->setChecked(true);
|
||||
Preferences::instance()->setSearchEnabled(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user