From b7d67ec4339e929fe421c0b52b32011903993f66 Mon Sep 17 00:00:00 2001 From: Mark Yu Date: Sun, 13 Jul 2025 18:28:15 -0400 Subject: [PATCH] share_limit_action not share_action_limit --- src/webui/api/serialize/serialize_torrent.cpp | 2 +- src/webui/api/serialize/serialize_torrent.h | 2 +- src/webui/api/synccontroller.cpp | 2 +- src/webui/www/private/scripts/mocha-init.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webui/api/serialize/serialize_torrent.cpp b/src/webui/api/serialize/serialize_torrent.cpp index 512818220..bae7ec4e8 100644 --- a/src/webui/api/serialize/serialize_torrent.cpp +++ b/src/webui/api/serialize/serialize_torrent.cpp @@ -171,7 +171,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent) {KEY_TORRENT_POPULARITY, torrent.popularity()}, {KEY_TORRENT_SEEDING_TIME_LIMIT, torrent.seedingTimeLimit()}, {KEY_TORRENT_INACTIVE_SEEDING_TIME_LIMIT, torrent.inactiveSeedingTimeLimit()}, - {KEY_TORRENT_SHARE_ACTION_LIMIT, static_cast(torrent.shareLimitAction())}, + {KEY_TORRENT_SHARE_LIMIT_ACTION, static_cast(torrent.shareLimitAction())}, {KEY_TORRENT_LAST_SEEN_COMPLETE_TIME, Utils::DateTime::toSecsSinceEpoch(torrent.lastSeenComplete())}, {KEY_TORRENT_AUTO_TORRENT_MANAGEMENT, torrent.isAutoTMMEnabled()}, {KEY_TORRENT_TIME_ACTIVE, torrent.activeTime()}, diff --git a/src/webui/api/serialize/serialize_torrent.h b/src/webui/api/serialize/serialize_torrent.h index 257c718af..6f57a9940 100644 --- a/src/webui/api/serialize/serialize_torrent.h +++ b/src/webui/api/serialize/serialize_torrent.h @@ -85,7 +85,7 @@ inline const QString KEY_TORRENT_MAX_INACTIVE_SEEDING_TIME = u"max_inactive_seed inline const QString KEY_TORRENT_RATIO_LIMIT = u"ratio_limit"_s; inline const QString KEY_TORRENT_SEEDING_TIME_LIMIT = u"seeding_time_limit"_s; inline const QString KEY_TORRENT_INACTIVE_SEEDING_TIME_LIMIT = u"inactive_seeding_time_limit"_s; -inline const QString KEY_TORRENT_SHARE_ACTION_LIMIT = u"share_action_limit"_s; +inline const QString KEY_TORRENT_SHARE_LIMIT_ACTION = u"share_limit_action"_s; inline const QString KEY_TORRENT_LAST_SEEN_COMPLETE_TIME = u"seen_complete"_s; inline const QString KEY_TORRENT_LAST_ACTIVITY_TIME = u"last_activity"_s; inline const QString KEY_TORRENT_TOTAL_SIZE = u"total_size"_s; diff --git a/src/webui/api/synccontroller.cpp b/src/webui/api/synccontroller.cpp index 8d32d98a3..b324fd541 100644 --- a/src/webui/api/synccontroller.cpp +++ b/src/webui/api/synccontroller.cpp @@ -497,7 +497,7 @@ void SyncController::updateFreeDiskSpace(const qint64 freeDiskSpace) // - "max_seeding_time": Upload max seeding time // - "ratio_limit": Upload share ratio limit // - "seeding_time_limit": Upload seeding time limit -// - "share_action_limit": Action to execute when the limit is reached +// - "share_limit_action": Action to execute when the limit is reached // - "seen_complete": Indicates the time when the torrent was last seen complete/whole // - "last_activity": Last time when a chunk was downloaded/uploaded // - "total_size": Size including unwanted data diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index cfff8af61..b6322b0ed 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -382,7 +382,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.share_action_limit}`; + + `|${row.max_seeding_time}|${row.max_inactive_seeding_time}|${row.share_limit_action}`; // initialize value if (shareRatio === null)