Update IsRunning IPC

pull/41/head
Liza 2024-09-09 15:49:30 +02:00
parent b206863235
commit 7348cee3c7
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 2 additions and 1 deletions

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());