sync with upstreaom #2

Open
goatzone wants to merge 541 commits from liza/Questionable:master into master
2 changed files with 6 additions and 0 deletions
Showing only changes of commit c0c2e324bb - Show all commits

View File

@ -146,6 +146,8 @@ internal sealed class QuestController : MiniTaskController<QuestController>, IDi
public string? DebugState { get; private set; }
public Func<bool> IsQuestWindowOpen { private get; set; } = () => true;
public void Reload()
{
lock (_progressLock)
@ -181,6 +183,9 @@ internal sealed class QuestController : MiniTaskController<QuestController>, IDi
}
}
if (AutomationType == EAutomationType.Manual && !IsRunning && !IsQuestWindowOpen())
return;
UpdateCurrentQuest();
if (!_clientState.IsLoggedIn || _condition[ConditionFlag.Unconscious])

View File

@ -104,6 +104,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
_activeQuestComponent.Reload += OnReload;
_quickAccessButtonsComponent.Reload += OnReload;
_questController.IsQuestWindowOpen = () => IsOpen;
}
public WindowConfig WindowConfig => _configuration.DebugWindowConfig;