mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
parent
9d6d3a30eb
commit
2a20764d39
9 changed files with 58 additions and 2 deletions
|
@ -130,6 +130,7 @@ void AppController::preferencesAction()
|
|||
data[u"auto_delete_mode"_s] = static_cast<int>(TorrentFileGuard::autoDeleteMode());
|
||||
data[u"preallocate_all"_s] = session->isPreallocationEnabled();
|
||||
data[u"incomplete_files_ext"_s] = session->isAppendExtensionEnabled();
|
||||
data[u"use_unwanted_folder"_s] = session->isUnwantedFolderEnabled();
|
||||
// Saving Management
|
||||
data[u"auto_tmm_enabled"_s] = !session->isAutoTMMDisabledByDefault();
|
||||
data[u"torrent_changed_tmm_enabled"_s] = !session->isDisableAutoTMMWhenCategoryChanged();
|
||||
|
@ -513,6 +514,8 @@ void AppController::setPreferencesAction()
|
|||
session->setPreallocationEnabled(it.value().toBool());
|
||||
if (hasKey(u"incomplete_files_ext"_s))
|
||||
session->setAppendExtensionEnabled(it.value().toBool());
|
||||
if (hasKey(u"use_unwanted_folder"_s))
|
||||
session->setUnwantedFolderEnabled(it.value().toBool());
|
||||
|
||||
// Saving Management
|
||||
if (hasKey(u"auto_tmm_enabled"_s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue