fix some shit

This commit is contained in:
Stanley Dimant
2025-01-25 20:57:56 +01:00
parent 238e20594c
commit b8e949819e
2 changed files with 23 additions and 2 deletions

View File

@@ -169,8 +169,29 @@ public sealed class TransientResourceManager : DisposableMediatorSubscriberBase
} }
int removed = set.RemoveWhere(p => list.Contains(p, StringComparer.OrdinalIgnoreCase)); int removed = set.RemoveWhere(p => list.Contains(p, StringComparer.OrdinalIgnoreCase));
Logger.LogInformation("Removed {removed} previously existing paths", removed); Logger.LogInformation("Removed {removed} previously existing transient paths", removed);
} }
bool reloadSemiTransient = false;
if (SemiTransientResources.TryGetValue(objectKind, out var semiset))
{
foreach (var file in semiset.Where(p => list.Contains(p, StringComparer.OrdinalIgnoreCase)))
{
Logger.LogTrace("Removing From Transient: {file}", file);
PlayerConfig.RemovePath(file);
}
int removed = semiset.RemoveWhere(p => list.Contains(p, StringComparer.OrdinalIgnoreCase));
Logger.LogInformation("Removed {removed} previously existing semi transient paths", removed);
if (removed > 0)
{
reloadSemiTransient = true;
_configurationService.Save();
}
}
if (reloadSemiTransient)
_semiTransientResources = null;
} }
protected override void Dispose(bool disposing) protected override void Dispose(bool disposing)

View File

@@ -497,7 +497,7 @@ public class TopTabMenu
_mareMediator.Publish(new UiToggleMessage(typeof(DataAnalysisUi))); _mareMediator.Publish(new UiToggleMessage(typeof(DataAnalysisUi)));
} }
UiSharedService.AttachToolTip("View and analyze your generated character data"); UiSharedService.AttachToolTip("View and analyze your generated character data");
if (_uiSharedService.IconTextButton(FontAwesomeIcon.Running, "Chararacter Data Hub", availableWidth)) if (_uiSharedService.IconTextButton(FontAwesomeIcon.Running, "Character Data Hub", availableWidth))
{ {
_mareMediator.Publish(new UiToggleMessage(typeof(CharaDataHubUi))); _mareMediator.Publish(new UiToggleMessage(typeof(CharaDataHubUi)));
} }