diff --git a/src/webui/api/appcontroller.cpp b/src/webui/api/appcontroller.cpp index 0b82613c7..e0ddc7d5b 100644 --- a/src/webui/api/appcontroller.cpp +++ b/src/webui/api/appcontroller.cpp @@ -299,6 +299,8 @@ void AppController::preferencesAction() // Advanced settings // qBitorrent preferences + // Resume data storage type + data[u"resume_data_storage_type"_qs] = Utils::String::fromEnum(session->resumeDataStorageType()); // Physical memory (RAM) usage limit data[u"memory_working_set_limit"_qs] = app()->memoryWorkingSetLimit(); // Current network interface @@ -776,6 +778,9 @@ void AppController::setPreferencesAction() // Advanced settings // qBittorrent preferences + // Resume data storage type + if (hasKey(u"resume_data_storage_type"_qs)) + session->setResumeDataStorageType(Utils::String::toEnum(it.value().toString(), BitTorrent::ResumeDataStorageType::Legacy)); // Physical memory (RAM) usage limit if (hasKey(u"memory_working_set_limit"_qs)) app()->setMemoryWorkingSetLimit(it.value().toInt()); diff --git a/src/webui/webapplication.h b/src/webui/webapplication.h index 54a3f3c4e..bc55919b0 100644 --- a/src/webui/webapplication.h +++ b/src/webui/webapplication.h @@ -52,7 +52,7 @@ #include "base/utils/version.h" #include "api/isessionmanager.h" -inline const Utils::Version<3, 2> API_VERSION {2, 8, 18}; +inline const Utils::Version<3, 2> API_VERSION {2, 8, 19}; class APIController; class AuthController; diff --git a/src/webui/www/private/views/preferences.html b/src/webui/www/private/views/preferences.html index 22bddb687..3c3634431 100644 --- a/src/webui/www/private/views/preferences.html +++ b/src/webui/www/private/views/preferences.html @@ -879,6 +879,17 @@ Use ';' to split multiple entries. Can use wildcard '*'.)QBT_TR[CONTEXT=OptionsD