mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
Add save path and editing to WebUI new category dialog
This commit is contained in:
parent
a0e6007fc1
commit
63c53766b4
12 changed files with 197 additions and 71 deletions
|
@ -399,16 +399,17 @@ void SyncController::maindataAction()
|
|||
|
||||
data["torrents"] = torrents;
|
||||
|
||||
QVariantList categoriesList;
|
||||
const auto categories = session->categories();
|
||||
for (auto key : categories.keys()) {
|
||||
categoriesList << QVariantMap {
|
||||
QVariantHash categories;
|
||||
const auto categoriesList = session->categories();
|
||||
for (auto it = categoriesList.cbegin(); it != categoriesList.cend(); ++it) {
|
||||
const auto key = it.key();
|
||||
categories[key] = QVariantMap {
|
||||
{"name", key},
|
||||
{"savePath", categories.value(key)},
|
||||
{"savePath", it.value()}
|
||||
};
|
||||
}
|
||||
|
||||
data["categories"] = categoriesList;
|
||||
data["categories"] = categories;
|
||||
|
||||
QVariantMap serverState = getTranserInfo();
|
||||
serverState[KEY_SYNC_MAINDATA_QUEUEING] = session->isQueueingSystemEnabled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue