mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
WebUI: Add 'Confirm torrent recheck' option
This PR adds setting & confirmation dialog for torrent recheck. Closes #19557. PR #21348.
This commit is contained in:
parent
183c7c75b1
commit
c3224459db
7 changed files with 136 additions and 24 deletions
|
@ -368,6 +368,8 @@ void AppController::preferencesAction()
|
|||
data[u"save_statistics_interval"_s] = static_cast<int>(session->saveStatisticsInterval().count());
|
||||
// .torrent file size limit
|
||||
data[u"torrent_file_size_limit"_s] = pref->getTorrentFileSizeLimit();
|
||||
// Confirm torrent recheck
|
||||
data[u"confirm_torrent_recheck"_s] = pref->confirmTorrentRecheck();
|
||||
// Recheck completed torrents
|
||||
data[u"recheck_completed_torrents"_s] = pref->recheckTorrentsOnCompletion();
|
||||
// Customize application instance name
|
||||
|
@ -977,6 +979,9 @@ void AppController::setPreferencesAction()
|
|||
// .torrent file size limit
|
||||
if (hasKey(u"torrent_file_size_limit"_s))
|
||||
pref->setTorrentFileSizeLimit(it.value().toLongLong());
|
||||
// Confirm torrent recheck
|
||||
if (hasKey(u"confirm_torrent_recheck"_s))
|
||||
pref->setConfirmTorrentRecheck(it.value().toBool());
|
||||
// Recheck completed torrents
|
||||
if (hasKey(u"recheck_completed_torrents"_s))
|
||||
pref->recheckTorrentsOnCompletion(it.value().toBool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue