mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Allow users to specify Python executable path
Closes #19195. PR #19644.
This commit is contained in:
parent
529e49aea7
commit
b3fda76027
10 changed files with 77 additions and 16 deletions
|
@ -1487,6 +1487,19 @@ void Preferences::setTrackerPortForwardingEnabled(const bool enabled)
|
|||
setValue(u"Preferences/Advanced/trackerPortForwarding"_s, enabled);
|
||||
}
|
||||
|
||||
Path Preferences::getPythonExecutablePath() const
|
||||
{
|
||||
return value(u"Preferences/Search/pythonExecutablePath"_s, Path());
|
||||
}
|
||||
|
||||
void Preferences::setPythonExecutablePath(const Path &path)
|
||||
{
|
||||
if (path == getPythonExecutablePath())
|
||||
return;
|
||||
|
||||
setValue(u"Preferences/Search/pythonExecutablePath"_s, path);
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
bool Preferences::isUpdateCheckEnabled() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue