mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
Fix minor display issues
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
<MudCardContent Class="pt-0">
|
<MudCardContent Class="pt-0">
|
||||||
<MudGrid>
|
<MudGrid>
|
||||||
<MudItem xs="12">
|
<MudItem xs="12">
|
||||||
<MudSelect T="bool" Label="Default Torrent Management Mode" Value="AutoTmmEnabled" ValueChanged="AutoDeleteModeChanged" Variant="Variant.Outlined">
|
<MudSelect T="bool" Label="Default Torrent Management Mode" Value="AutoTmmEnabled" ValueChanged="AutoTmmEnabledChanged" Variant="Variant.Outlined">
|
||||||
<MudSelectItem Value="false">Manual</MudSelectItem>
|
<MudSelectItem Value="false">Manual</MudSelectItem>
|
||||||
<MudSelectItem Value="true">Automatic</MudSelectItem>
|
<MudSelectItem Value="true">Automatic</MudSelectItem>
|
||||||
</MudSelect>
|
</MudSelect>
|
||||||
|
@@ -25,7 +25,7 @@ namespace Lantean.QBTMud.Helpers
|
|||||||
const long InfiniteEtaSentinelSeconds = 8_640_000; // ~100 days, used by qBittorrent for "infinite" ETA.
|
const long InfiniteEtaSentinelSeconds = 8_640_000; // ~100 days, used by qBittorrent for "infinite" ETA.
|
||||||
var value = seconds.Value;
|
var value = seconds.Value;
|
||||||
|
|
||||||
if (value >= long.MaxValue || value >= (long)TimeSpan.MaxValue.TotalSeconds || value == InfiniteEtaSentinelSeconds)
|
if (value >= long.MaxValue || value >= TimeSpan.MaxValue.TotalSeconds || value == InfiniteEtaSentinelSeconds)
|
||||||
{
|
{
|
||||||
return "∞";
|
return "∞";
|
||||||
}
|
}
|
||||||
|
@@ -207,7 +207,7 @@ namespace Lantean.QBTMud.Helpers
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Status.Paused:
|
case Status.Paused:
|
||||||
if (!state.Contains("paused") || !state.Contains("stopped"))
|
if (!state.Contains("paused") && !state.Contains("stopped"))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -220,12 +220,11 @@ namespace Lantean.QBTMud.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
torrentList.Tags.Add(normalizedTag);
|
torrentList.Tags.Add(normalizedTag);
|
||||||
if (!torrentList.TagState.ContainsKey(normalizedTag))
|
var matchingHashes = torrentList.Torrents
|
||||||
{
|
.Where(pair => FilterHelper.FilterTag(pair.Value, normalizedTag))
|
||||||
torrentList.TagState[normalizedTag] = torrentList.Torrents.Values
|
.Select(pair => pair.Key)
|
||||||
.Where(t => FilterHelper.FilterTag(t, normalizedTag))
|
.ToHashSet();
|
||||||
.ToHashesHashSet();
|
torrentList.TagState[normalizedTag] = matchingHashes;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user