WebUI: Implement Share limit action

PR #22989.
Closes #22984.
This commit is contained in:
Mark Yu
2025-07-20 04:39:31 -04:00
committed by GitHub
parent c962a6b1d7
commit 8f709b5fbc
8 changed files with 41 additions and 8 deletions

View File

@@ -385,7 +385,7 @@ const initializeWindows = () => {
const hash = hashes[i];
const row = torrentsTable.getRow(hash).full_data;
const origValues = `${row.ratio_limit}|${row.seeding_time_limit}|${row.inactive_seeding_time_limit}|${row.max_ratio}`
+ `|${row.max_seeding_time}|${row.max_inactive_seeding_time}`;
+ `|${row.max_seeding_time}|${row.max_inactive_seeding_time}|${row.share_limit_action}`;
// initialize value
if (shareRatio === null)
@@ -414,8 +414,8 @@ const initializeWindows = () => {
maximizable: false,
paddingVertical: 0,
paddingHorizontal: 0,
width: window.qBittorrent.Dialog.limitWidthToViewport(424),
height: 220
width: window.qBittorrent.Dialog.limitWidthToViewport(500),
height: 250
});
};