diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html
index 3abdc6f2a..91cd22e02 100644
--- a/src/webui/www/private/newcategory.html
+++ b/src/webui/www/private/newcategory.html
@@ -3,7 +3,7 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js
index 399e6e058..59462273e 100644
--- a/src/webui/www/private/scripts/client.js
+++ b/src/webui/www/private/scripts/client.js
@@ -832,12 +832,15 @@ window.addEventListener("DOMContentLoaded", (event) => {
if (categoryData === undefined) {
window.qBittorrent.Client.categoryMap.set(responseName, {
savePath: responseData.savePath,
+ downloadPath: responseData.download_path ?? null,
torrents: new Set()
});
}
else {
- // only the save path can change for existing categories
- categoryData.savePath = responseData.savePath;
+ if (responseData.savePath !== undefined)
+ categoryData.savePath = responseData.savePath;
+ if (responseData.download_path !== undefined)
+ categoryData.downloadPath = responseData.download_path;
}
}
updateCategories = true;
diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js
index b564124fc..7ea2bb13d 100644
--- a/src/webui/www/private/scripts/mocha-init.js
+++ b/src/webui/www/private/scripts/mocha-init.js
@@ -869,7 +869,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: 400,
- height: 150
+ height: 200
});
};
@@ -910,7 +910,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: 400,
- height: 150
+ height: 200
});
};
@@ -932,7 +932,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: 400,
- height: 150
+ height: 200
});
};
@@ -940,8 +940,7 @@ const initializeWindows = () => {
const contentURL = new URL("newcategory.html", window.location);
contentURL.search = new URLSearchParams({
action: "edit",
- categoryName: category,
- savePath: categoryMap.get(category).savePath
+ categoryName: category
});
new MochaUI.Window({
id: "editCategoryPage",
@@ -955,7 +954,7 @@ const initializeWindows = () => {
paddingVertical: 0,
paddingHorizontal: 0,
width: 400,
- height: 150
+ height: 200
});
};