mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Add suggest_mode knob
This commit is contained in:
committed by
sledgehammer999
parent
6f54c170ab
commit
08a0fef18a
@@ -79,6 +79,7 @@ enum AdvSettingsRows
|
||||
DISK_CACHE_TTL,
|
||||
OS_CACHE,
|
||||
GUIDED_READ_CACHE,
|
||||
SUGGEST_MODE,
|
||||
// ports
|
||||
MAX_HALF_OPEN,
|
||||
OUTGOING_PORT_MIN,
|
||||
@@ -134,6 +135,8 @@ void AdvancedSettings::saveAdvancedSettings()
|
||||
session->setUseOSCache(cb_os_cache.isChecked());
|
||||
// Guided read cache
|
||||
session->setGuidedReadCacheEnabled(cbGuidedReadCache.isChecked());
|
||||
// Suggest mode
|
||||
session->setSuggestMode(cbSuggestMode.isChecked());
|
||||
// Save resume data interval
|
||||
session->setSaveResumeDataInterval(spin_save_resume_data_interval.value());
|
||||
// Outgoing ports
|
||||
@@ -297,6 +300,9 @@ void AdvancedSettings::loadAdvancedSettings()
|
||||
// Guided read cache
|
||||
cbGuidedReadCache.setChecked(session->isGuidedReadCacheEnabled());
|
||||
addRow(GUIDED_READ_CACHE, tr("Guided read cache"), &cbGuidedReadCache);
|
||||
// Suggest mode
|
||||
cbSuggestMode.setChecked(session->isSuggestModeEnabled());
|
||||
addRow(SUGGEST_MODE, tr("Send upload piece suggestions"), &cbSuggestMode);
|
||||
// Save resume data interval
|
||||
spin_save_resume_data_interval.setMinimum(1);
|
||||
spin_save_resume_data_interval.setMaximum(1440);
|
||||
|
||||
@@ -78,7 +78,8 @@ private:
|
||||
QSpinBox spin_cache, spin_save_resume_data_interval, outgoing_ports_min, outgoing_ports_max, spin_list_refresh, spin_maxhalfopen, spin_tracker_port, spin_cache_ttl;
|
||||
QCheckBox cb_os_cache, cb_recheck_completed, cb_resolve_countries, cb_resolve_hosts, cb_super_seeding,
|
||||
cb_program_notifications, cb_torrent_added_notifications, cb_tracker_favicon, cb_tracker_status,
|
||||
cb_confirm_torrent_recheck, cb_confirm_remove_all_tags, cb_listen_ipv6, cb_announce_all_trackers, cbGuidedReadCache, cbMultiConnectionsPerIp;
|
||||
cb_confirm_torrent_recheck, cb_confirm_remove_all_tags, cb_listen_ipv6, cb_announce_all_trackers, cbGuidedReadCache, cbMultiConnectionsPerIp,
|
||||
cbSuggestMode;
|
||||
QComboBox combo_iface, combo_iface_address, comboUtpMixedMode, comboChokingAlgorithm, comboSeedChokingAlgorithm;
|
||||
QLineEdit txtAnnounceIP;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user