This commit is contained in:
Liza 2024-03-12 13:03:47 +01:00
parent c4c7489fef
commit b366db9cae
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -5,6 +5,7 @@ using AutoRetainerAPI;
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using ECommons;
using FFXIVClientStructs.FFXIV.Client.System.Framework;
using LLib;
namespace AutoShutdown;
@ -58,7 +59,11 @@ public sealed class Plogon : IDalamudPlugin
}
// move to background using alt+esc
SendKeys.SendWait("%({esc})");
unsafe
{
if (!Framework.Instance()->WindowInactive)
SendKeys.SendWait("%({esc})");
}
}
public void Dispose()