mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add options to adjust behavior of merging trackers to existing torrent
PR #19278. Closes #19251.
This commit is contained in:
parent
fff7b1dcbd
commit
4ef9a6444a
9 changed files with 125 additions and 14 deletions
|
@ -1508,6 +1508,19 @@ void Preferences::setConfirmPauseAndResumeAll(const bool enabled)
|
|||
setValue(u"GUI/ConfirmActions/PauseAndResumeAllTorrents"_s, enabled);
|
||||
}
|
||||
|
||||
bool Preferences::confirmMergeTrackers() const
|
||||
{
|
||||
return value(u"GUI/ConfirmActions/MergeTrackers"_s, true);
|
||||
}
|
||||
|
||||
void Preferences::setConfirmMergeTrackers(const bool enabled)
|
||||
{
|
||||
if (enabled == confirmMergeTrackers())
|
||||
return;
|
||||
|
||||
setValue(u"GUI/ConfirmActions/MergeTrackers"_s, enabled);
|
||||
}
|
||||
|
||||
#ifndef Q_OS_MACOS
|
||||
TrayIcon::Style Preferences::trayIconStyle() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue