minor fixes
This commit is contained in:
@@ -278,7 +278,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
|
|||||||
_downloadCancellationTokenSource = _downloadCancellationTokenSource?.CancelRecreate() ?? new CancellationTokenSource();
|
_downloadCancellationTokenSource = _downloadCancellationTokenSource?.CancelRecreate() ?? new CancellationTokenSource();
|
||||||
var downloadToken = _downloadCancellationTokenSource.Token;
|
var downloadToken = _downloadCancellationTokenSource.Token;
|
||||||
|
|
||||||
Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
Dictionary<string, string> moddedPaths = new(StringComparer.Ordinal);
|
Dictionary<string, string> moddedPaths = new(StringComparer.Ordinal);
|
||||||
|
|
||||||
@@ -403,7 +403,7 @@ public sealed class PairHandler : DisposableMediatorSubscriberBase
|
|||||||
{
|
{
|
||||||
Logger.LogTrace("[BASE-{appBase}] {this} visibility changed, now: {visi}, cached data exists", appData, this, IsVisible);
|
Logger.LogTrace("[BASE-{appBase}] {this} visibility changed, now: {visi}, cached data exists", appData, this, IsVisible);
|
||||||
|
|
||||||
Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
_lastGlamourerData = await _ipcManager.GlamourerGetCharacterCustomizationAsync(PlayerCharacter).ConfigureAwait(false);
|
_lastGlamourerData = await _ipcManager.GlamourerGetCharacterCustomizationAsync(PlayerCharacter).ConfigureAwait(false);
|
||||||
ApplyCharacterData(appData, _cachedData!, true);
|
ApplyCharacterData(appData, _cachedData!, true);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
|
|
||||||
Mediator.Subscribe<ClearCacheForObjectMessage>(this, (msg) =>
|
Mediator.Subscribe<ClearCacheForObjectMessage>(this, (msg) =>
|
||||||
{
|
{
|
||||||
Task.Run(() =>
|
_ = Task.Run(() =>
|
||||||
{
|
{
|
||||||
Logger.LogTrace("Clearing cache for {obj}", msg.ObjectToCreateFor);
|
Logger.LogTrace("Clearing cache for {obj}", msg.ObjectToCreateFor);
|
||||||
_playerData.FileReplacements.Remove(msg.ObjectToCreateFor.ObjectKind);
|
_playerData.FileReplacements.Remove(msg.ObjectToCreateFor.ObjectKind);
|
||||||
@@ -48,7 +48,6 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
Mediator.Subscribe<ZoneSwitchStartMessage>(this, (msg) => _isZoning = true);
|
Mediator.Subscribe<ZoneSwitchStartMessage>(this, (msg) => _isZoning = true);
|
||||||
Mediator.Subscribe<ZoneSwitchEndMessage>(this, (msg) => _isZoning = false);
|
Mediator.Subscribe<ZoneSwitchEndMessage>(this, (msg) => _isZoning = false);
|
||||||
|
|
||||||
Mediator.Subscribe<DelayedFrameworkUpdateMessage>(this, (msg) => ProcessCacheCreation());
|
|
||||||
Mediator.Subscribe<CustomizePlusMessage>(this, async (_) =>
|
Mediator.Subscribe<CustomizePlusMessage>(this, async (_) =>
|
||||||
{
|
{
|
||||||
if (_isZoning) return;
|
if (_isZoning) return;
|
||||||
@@ -93,6 +92,8 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
.GetAwaiter().GetResult();
|
.GetAwaiter().GetResult();
|
||||||
_playerRelatedObjects[ObjectKind.Companion] = gameObjectHandlerFactory.Create(ObjectKind.Companion, () => dalamudUtil.GetCompanion(), true)
|
_playerRelatedObjects[ObjectKind.Companion] = gameObjectHandlerFactory.Create(ObjectKind.Companion, () => dalamudUtil.GetCompanion(), true)
|
||||||
.GetAwaiter().GetResult();
|
.GetAwaiter().GetResult();
|
||||||
|
|
||||||
|
Mediator.Subscribe<DelayedFrameworkUpdateMessage>(this, (msg) => ProcessCacheCreation());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
@@ -117,7 +118,7 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
_honorificCts = new();
|
_honorificCts = new();
|
||||||
var token = _honorificCts.Token;
|
var token = _honorificCts.Token;
|
||||||
|
|
||||||
Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
await Task.Delay(TimeSpan.FromSeconds(3), token).ConfigureAwait(false);
|
await Task.Delay(TimeSpan.FromSeconds(3), token).ConfigureAwait(false);
|
||||||
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
||||||
@@ -131,7 +132,7 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
|
|||||||
_palettePlusCts = new();
|
_palettePlusCts = new();
|
||||||
var token = _palettePlusCts.Token;
|
var token = _palettePlusCts.Token;
|
||||||
|
|
||||||
Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
await Task.Delay(TimeSpan.FromSeconds(1), token).ConfigureAwait(false);
|
await Task.Delay(TimeSpan.FromSeconds(1), token).ConfigureAwait(false);
|
||||||
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
await AddPlayerCacheToCreate().ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user