mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Windows execution fixes
This commit is contained in:
@@ -983,6 +983,18 @@ public:
|
||||
qBTRSS.setValue("hosts_cookies", hosts_table);
|
||||
}
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
static void setPythonPath(QString path) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Win32/PythonPath"), path);
|
||||
}
|
||||
|
||||
static QString getPythonPath() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Win32/PythonPath"), "").toString();
|
||||
}
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
||||
Reference in New Issue
Block a user