Fix timings

master v1.1
Liza 2023-09-09 19:08:29 +02:00
parent 2bb7f2aef3
commit 2fbf350c97
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework> <TargetFramework>net7.0-windows</TargetFramework>
<Version>1.0</Version> <Version>1.1</Version>
<LangVersion>11.0</LangVersion> <LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

View File

@ -47,7 +47,6 @@ public class AutoDiscardPlogon : IDalamudPlugin
_pluginInterface.UiBuilder.Draw += _windowSystem.Draw; _pluginInterface.UiBuilder.Draw += _windowSystem.Draw;
_pluginInterface.UiBuilder.OpenConfigUi += OpenConfigUi; _pluginInterface.UiBuilder.OpenConfigUi += OpenConfigUi;
_configWindow = new(_pluginInterface, _configuration, dataManager); _configWindow = new(_pluginInterface, _configuration, dataManager);
_configWindow.IsOpen = true;
_windowSystem.AddWindow(_configWindow); _windowSystem.AddWindow(_configWindow);
ECommonsMain.Init(_pluginInterface, this); ECommonsMain.Init(_pluginInterface, this);
@ -103,7 +102,7 @@ public class AutoDiscardPlogon : IDalamudPlugin
_taskManager.DelayNext(5); _taskManager.DelayNext(5);
_taskManager.Enqueue(ConfirmDiscardItem); _taskManager.Enqueue(ConfirmDiscardItem);
_taskManager.DelayNext(2000); _taskManager.DelayNext(20);
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot)); _taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
} }
@ -131,7 +130,7 @@ public class AutoDiscardPlogon : IDalamudPlugin
if (nextItem->Container == inventoryType && nextItem->Slot == slot) if (nextItem->Container == inventoryType && nextItem->Slot == slot)
{ {
_taskManager.DelayNext(100); _taskManager.DelayNext(20);
_taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot)); _taskManager.Enqueue(() => ContinueAfterDiscard(finishRetainerAction, inventoryType, slot));
} }
else else