Minor patches/changes

- Patched a mistake
- Slightly changed appearance
This commit is contained in:
VioPaige 2025-06-21 11:42:07 +02:00
parent 29be2c350a
commit c9dd838a77
5 changed files with 6 additions and 7 deletions

View file

@ -633,7 +633,7 @@
</property>
</widget>
</item>
<item row="5" column="2">
<item row="6" column="0">
<widget class="QLabel" name="labelImportance">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
@ -652,7 +652,7 @@
</property>
</widget>
</item>
<item row="5" column="3">
<item row="6" column="1">
<widget class="QLabel" name="labelImportanceVal">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">

View file

@ -154,7 +154,7 @@ QVariantMap serialize(const BitTorrent::Torrent &torrent)
{KEY_TORRENT_RATIO, adjustRatio(torrent.realRatio())},
{KEY_TORRENT_RATIO_LIMIT, torrent.ratioLimit()},
{KEY_TORRENT_POPULARITY, torrent.popularity()},
{KEY_TORRENT_IMPORTANCE, torrent.importance()},
{KEY_TORRENT_IMPORTANCE, adjustRatio(torrent.importance())},
{KEY_TORRENT_SEEDING_TIME_LIMIT, torrent.seedingTimeLimit()},
{KEY_TORRENT_INACTIVE_SEEDING_TIME_LIMIT, torrent.inactiveSeedingTimeLimit()},
{KEY_TORRENT_LAST_SEEN_COMPLETE_TIME, Utils::DateTime::toSecsSinceEpoch(torrent.lastSeenComplete())},

View file

@ -1449,7 +1449,7 @@ window.qBittorrent.DynamicTable ??= (() => {
};
// importance
this.columns["importance".updateId] = function(td, row) {
this.columns["importance"].updateId = function(td, row) {
const value = this.getRowValue(row);
const importance = (value === -1) ? "∞" : window.qBittorrent.Misc.toFixedPointString(value, 2);
td.textContent = importance;

View file

@ -175,7 +175,7 @@ window.qBittorrent.PropGeneral ??= (() => {
document.getElementById("popularity").textContent = data.popularity.toFixed(2);
document.getElementById("importance").textContent = data.importance.toFixed(2);
document.getElementById("importance").textContent = (data.importance === -1) ? "∞" : data.importance.toFixed(2);
document.getElementById("reannounce").textContent = window.qBittorrent.Misc.friendlyDuration(data.reannounce);

View file

@ -52,8 +52,7 @@
<tr>
<td class="generalLabel" title="QBT_TR(Ratio / Time Active (in months), indicates how popular the torrent is)QBT_TR[CONTEXT=PropertiesWidget]">QBT_TR(Popularity:)QBT_TR[CONTEXT=PropertiesWidget]</td>
<td id="popularity" title="QBT_TR(Ratio / Time Active (in months), indicates how popular the torrent is)QBT_TR[CONTEXT=PropertiesWidget]"></td>
</tr>
<tr>
<td class="generalLabel" title="QBT_TR(Popularity / Total Seeds (Higher number implies it is more 'important' to seed the torrent))QBT_TR[CONTEXT=PropertiesWidget]">QBT_TR(Importance:)QBT_TR[CONTEXT=PropertiesWidget]</td>
<td id="importance" title="QBT_TR(Popularity / Total Seeds (Higher number implies it is more 'important' to seed the torrent))QBT_TR[CONTEXT=PropertiesWidget]"></td>
</tr>