diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-18 17:44:17 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-18 11:23:23 +0100 |
| commit | 6e127eb49d6a71e4d05cbb2e29fc164e718a903c (patch) | |
| tree | a11e635dd5ae465c1173fe85e992c8e618fe2e7c /src/main.cpp | |
| parent | fb230927ab64ebcb4f2fe75f33658127421738b9 (diff) | |
| download | kristall-6e127eb49d6a71e4d05cbb2e29fc164e718a903c.tar.gz | |
Add unlimited cache life option
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6a3e110..6fb5280 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -384,6 +384,7 @@ void GenericSettings::load(QSettings &settings) cache_limit = settings.value("cache_limit", 1000).toInt(); cache_threshold = settings.value("cache_threshold", 125).toInt(); cache_life = settings.value("cache_life", 15).toInt(); + cache_unlimited_life = settings.value("cache_unlimited_life", true).toBool(); } void GenericSettings::save(QSettings &settings) const @@ -429,6 +430,7 @@ void GenericSettings::save(QSettings &settings) const settings.setValue("cache_limit", cache_limit); settings.setValue("cache_threshold", cache_threshold); settings.setValue("cache_life", cache_life); + settings.setValue("cache_unlimited_life", cache_unlimited_life); } |
