From 75c80c371658f3d128cdf913336cb85d36e7faf0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 19 Jun 2019 22:15:58 +0800 Subject: [PATCH] Remove limits of "Disk cache expiry interval" setting --- src/gui/advancedsettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/advancedsettings.cpp b/src/gui/advancedsettings.cpp index cb1a2e27c..e3cddc567 100644 --- a/src/gui/advancedsettings.cpp +++ b/src/gui/advancedsettings.cpp @@ -353,8 +353,8 @@ void AdvancedSettings::loadAdvancedSettings() addRow(DISK_CACHE, (tr("Disk cache") + ' ' + makeLink("https://www.libtorrent.org/reference-Settings.html#cache_size", "(?)")) , &spinBoxCache); // Disk cache expiry - spinBoxCacheTTL.setMinimum(15); - spinBoxCacheTTL.setMaximum(600); + spinBoxCacheTTL.setMinimum(1); + spinBoxCacheTTL.setMaximum(std::numeric_limits::max()); spinBoxCacheTTL.setValue(session->diskCacheTTL()); spinBoxCacheTTL.setSuffix(tr(" s", " seconds")); addRow(DISK_CACHE_TTL, (tr("Disk cache expiry interval") + ' ' + makeLink("https://www.libtorrent.org/reference-Settings.html#cache_expiry", "(?)"))