Update IsRunning IPC

This commit is contained in:
Liza 2024-09-09 15:49:30 +02:00
parent b206863235
commit 7348cee3c7
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -16,7 +16,8 @@ internal sealed class QuestionableIpc : IDisposable
public QuestionableIpc(QuestController questController, IDalamudPluginInterface pluginInterface)
{
_isRunning = pluginInterface.GetIpcProvider<bool>(IpcIsRunning);
_isRunning.RegisterFunc(() => questController.IsRunning);
_isRunning.RegisterFunc(() =>
questController.AutomationType != QuestController.EAutomationType.Manual || questController.IsRunning);
_getCurrentQuestId = pluginInterface.GetIpcProvider<string?>(IpcGetCurrentQuestId);
_getCurrentQuestId.RegisterFunc(() => questController.CurrentQuest?.Quest.Id.ToString());