fix some shit
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user