mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Allow to remove tracker from tracker filter widget menu
PR #19681. Closes #11100.
This commit is contained in:
committed by
GitHub
parent
ec90d169c0
commit
30189ae943
@@ -1580,6 +1580,19 @@ void Preferences::setConfirmMergeTrackers(const bool enabled)
|
||||
setValue(u"GUI/ConfirmActions/MergeTrackers"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::confirmRemoveTrackerFromAllTorrents() const
|
||||
{
|
||||
return value(u"GUI/ConfirmActions/RemoveTrackerFromAllTorrents"_s, true);
|
||||
}
|
||||
|
||||
void Preferences::setConfirmRemoveTrackerFromAllTorrents(const bool enabled)
|
||||
{
|
||||
if (enabled == confirmRemoveTrackerFromAllTorrents())
|
||||
return;
|
||||
|
||||
setValue(u"GUI/ConfirmActions/RemoveTrackerFromAllTorrents"_s, enabled);
|
||||
}
|
||||
|
||||
#ifndef Q_OS_MACOS
|
||||
TrayIcon::Style Preferences::trayIconStyle() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user