mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Add options to adjust behavior of merging trackers to existing torrent
PR #19278. Closes #19251.
This commit is contained in:
committed by
GitHub
parent
fff7b1dcbd
commit
4ef9a6444a
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user