mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Expose Mark-of-the-Web setting in Options
This commit is contained in:
parent
794cce38f3
commit
6cfbc02d8f
9 changed files with 59 additions and 5 deletions
|
@ -1319,6 +1319,19 @@ void Preferences::setTrackerPortForwardingEnabled(const bool enabled)
|
|||
setValue(u"Preferences/Advanced/trackerPortForwarding"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isMarkOfTheWebEnabled() const
|
||||
{
|
||||
return value(u"Preferences/Advanced/markOfTheWeb"_s, true);
|
||||
}
|
||||
|
||||
void Preferences::setMarkOfTheWebEnabled(const bool enabled)
|
||||
{
|
||||
if (enabled == isMarkOfTheWebEnabled())
|
||||
return;
|
||||
|
||||
setValue(u"Preferences/Advanced/markOfTheWeb"_s, enabled);
|
||||
}
|
||||
|
||||
Path Preferences::getPythonExecutablePath() const
|
||||
{
|
||||
return value(u"Preferences/Search/pythonExecutablePath"_s, Path());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue