From 325860ec2794dcec6671b3d94047a0f18991f262 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Fri, 23 Aug 2024 09:53:24 +0200 Subject: [PATCH] Remove ShouldHandleUiInteractions from duty UI windows since that's never active --- Questionable/Controller/GameUi/HelpUiController.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Questionable/Controller/GameUi/HelpUiController.cs b/Questionable/Controller/GameUi/HelpUiController.cs index a7b23398..0d869add 100644 --- a/Questionable/Controller/GameUi/HelpUiController.cs +++ b/Questionable/Controller/GameUi/HelpUiController.cs @@ -24,13 +24,8 @@ internal sealed class HelpUiController : IDisposable _addonLifecycle.RegisterListener(AddonEvent.PostSetup, "MultipleHelpWindow", MultipleHelpWindowPostSetup); } - private bool ShouldHandleUiInteractions => _questController.IsRunning; - private unsafe void UnendingCodexPostSetup(AddonEvent type, AddonArgs args) { - if (!ShouldHandleUiInteractions) - return; - if (_questController.StartedQuest?.Quest.Id.Value == 4526) { _logger.LogInformation("Closing Unending Codex"); @@ -41,9 +36,6 @@ internal sealed class HelpUiController : IDisposable private unsafe void ContentsTutorialPostSetup(AddonEvent type, AddonArgs args) { - if (!ShouldHandleUiInteractions) - return; - if (_questController.StartedQuest?.Quest.Id.Value == 245) { _logger.LogInformation("Closing ContentsTutorial"); @@ -57,9 +49,6 @@ internal sealed class HelpUiController : IDisposable /// private unsafe void MultipleHelpWindowPostSetup(AddonEvent type, AddonArgs args) { - if (!ShouldHandleUiInteractions) - return; - if (_questController.StartedQuest?.Quest.Id.Value == 245) { _logger.LogInformation("Closing MultipleHelpWindow");