mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
parent
e628b7d527
commit
209850064a
3 changed files with 19 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue