Compare commits
2 Commits
notificati
...
1.11.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
422ceaf5f6 | ||
|
|
b62a9588d6 |
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>1.11.6</Version>
|
<Version>1.11.7</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Light-Public-Syncshells/LightlessClient</PackageProjectUrl>
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ public class ServerConfigurationManager
|
|||||||
|
|
||||||
internal void AddPairTag(string tag)
|
internal void AddPairTag(string tag)
|
||||||
{
|
{
|
||||||
if (tag.Length > _maxCharactersFolder)
|
if (tag.Length <= _maxCharactersFolder)
|
||||||
{
|
{
|
||||||
CurrentPairTagStorage().ServerAvailablePairTags.Add(tag);
|
CurrentPairTagStorage().ServerAvailablePairTags.Add(tag);
|
||||||
_pairTagConfig.Save();
|
_pairTagConfig.Save();
|
||||||
@@ -313,7 +313,7 @@ public class ServerConfigurationManager
|
|||||||
|
|
||||||
internal void AddSyncshellTag(string tag)
|
internal void AddSyncshellTag(string tag)
|
||||||
{
|
{
|
||||||
if (tag.Length > _maxCharactersFolder)
|
if (tag.Length <= _maxCharactersFolder)
|
||||||
{
|
{
|
||||||
CurrentSyncshellTagStorage().ServerAvailableSyncshellTags.Add(tag);
|
CurrentSyncshellTagStorage().ServerAvailableSyncshellTags.Add(tag);
|
||||||
_syncshellTagConfig.Save();
|
_syncshellTagConfig.Save();
|
||||||
|
|||||||
@@ -431,10 +431,11 @@ public class CompactUi : WindowMediatorSubscriberBase
|
|||||||
if (groupedfiles != null)
|
if (groupedfiles != null)
|
||||||
{
|
{
|
||||||
//Checking of VRAM threshhold
|
//Checking of VRAM threshhold
|
||||||
var actualVramUsage = groupedfiles.SingleOrDefault(v => string.Equals(v.Key, "tex", StringComparison.Ordinal)).Sum(f => f.OriginalSize);
|
var texGroup = groupedfiles.SingleOrDefault(v => string.Equals(v.Key, "tex", StringComparison.Ordinal));
|
||||||
|
var actualVramUsage = texGroup != null ? texGroup.Sum(f => f.OriginalSize) : 0L;
|
||||||
var isOverVRAMUsage = _playerPerformanceConfig.Current.VRAMSizeWarningThresholdMiB * 1024 * 1024 < actualVramUsage;
|
var isOverVRAMUsage = _playerPerformanceConfig.Current.VRAMSizeWarningThresholdMiB * 1024 * 1024 < actualVramUsage;
|
||||||
|
|
||||||
if (isOverTriHold || isOverVRAMUsage)
|
if ((isOverTriHold || isOverVRAMUsage) && _playerPerformanceConfig.Current.WarnOnExceedingThresholds)
|
||||||
{
|
{
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
_uiSharedService.IconText(FontAwesomeIcon.ExclamationTriangle, UIColors.Get("LightlessYellow"));
|
_uiSharedService.IconText(FontAwesomeIcon.ExclamationTriangle, UIColors.Get("LightlessYellow"));
|
||||||
|
|||||||
Reference in New Issue
Block a user