mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 21:51:25 -07:00
Add checkbox option for IpFilterTrackers, closes #3154.
This commit is contained in:
parent
77786bb8bb
commit
32a712f005
5 changed files with 3213 additions and 28 deletions
|
@ -973,6 +973,16 @@ void Preferences::setFilteringEnabled(bool enabled)
|
|||
setValue("Preferences/IPFilter/Enabled", enabled);
|
||||
}
|
||||
|
||||
bool Preferences::isFilteringTrackerEnabled() const
|
||||
{
|
||||
return value("Preferences/IPFilter/FilterTracker", false).toBool();
|
||||
}
|
||||
|
||||
void Preferences::setFilteringTrackerEnabled(bool enabled)
|
||||
{
|
||||
setValue("Preferences/IPFilter/FilterTracker", enabled);
|
||||
}
|
||||
|
||||
QString Preferences::getFilter() const
|
||||
{
|
||||
return Utils::Fs::fromNativePath(value("Preferences/IPFilter/File").toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue