adding a save resume data interval option

because some SSD users oppose frequent disk writes
This commit is contained in:
John S. Peterson
2014-03-28 21:26:53 +01:00
committed by John Sebastian Peterson
parent d38bff0ca5
commit d27bff4df4
4 changed files with 22 additions and 3 deletions

View File

@@ -1157,6 +1157,14 @@ void Preferences::setOsCache(bool enable) {
setValue("Preferences/Advanced/osCache", enable);
}
uint Preferences::saveResumeDataInterval() const {
return value("Preferences/Downloads/SaveResumeDataInterval", 3).toUInt();
}
void Preferences::setSaveResumeDataInterval(uint m) {
setValue("Preferences/Downloads/SaveResumeDataInterval", m);
}
uint Preferences::outgoingPortsMin() const {
return value("Preferences/Advanced/OutgoingPortsMin", 0).toUInt();
}