mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 07:22:47 -07:00
Allow to use Category paths in "Manual" mode
If the option is enabled any relative save path will be resolved against an appropriate Category path instead of Global default one. PR #16330.
This commit is contained in:
parent
0012a3ede7
commit
facfa26eed
7 changed files with 66 additions and 21 deletions
|
@ -115,6 +115,7 @@ void AppController::preferencesAction()
|
|||
data["save_path"] = Utils::Fs::toNativePath(session->savePath());
|
||||
data["temp_path_enabled"] = session->isDownloadPathEnabled();
|
||||
data["temp_path"] = Utils::Fs::toNativePath(session->downloadPath());
|
||||
data["use_category_paths_in_manual_mode"] = session->useCategoryPathsInManualMode();
|
||||
data["export_dir"] = Utils::Fs::toNativePath(session->torrentExportDirectory());
|
||||
data["export_dir_fin"] = Utils::Fs::toNativePath(session->finishedTorrentExportDirectory());
|
||||
|
||||
|
@ -404,6 +405,8 @@ void AppController::setPreferencesAction()
|
|||
session->setDownloadPathEnabled(it.value().toBool());
|
||||
if (hasKey("temp_path"))
|
||||
session->setDownloadPath(it.value().toString());
|
||||
if (hasKey("use_category_paths_in_manual_mode"))
|
||||
session->setUseCategoryPathsInManualMode(it.value().toBool());
|
||||
if (hasKey("export_dir"))
|
||||
session->setTorrentExportDirectory(it.value().toString());
|
||||
if (hasKey("export_dir_fin"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue