Allow to remove tracker from tracker filter widget menu

PR #19681.
Closes #11100.
This commit is contained in:
Vladimir Golovnev 2023-10-11 21:58:05 +03:00 committed by GitHub
parent ec90d169c0
commit 30189ae943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 89 additions and 5 deletions

View file

@ -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
{