Remove ShouldHandleUiInteractions from duty UI windows since that's never active
authorLiza Carvelli <liza@carvel.li>
Fri, 23 Aug 2024 07:53:24 +0000 (09:53 +0200)
committerLiza Carvelli <liza@carvel.li>
Fri, 23 Aug 2024 07:53:24 +0000 (09:53 +0200)
Questionable/Controller/GameUi/HelpUiController.cs

index a7b23398d29822992084c0ab59c81c449413c625..0d869add3ca8a3a5ba18b006280136094dfbb8d8 100644 (file)
@@ -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
     /// </summary>
     private unsafe void MultipleHelpWindowPostSetup(AddonEvent type, AddonArgs args)
     {
-        if (!ShouldHandleUiInteractions)
-            return;
-
         if (_questController.StartedQuest?.Quest.Id.Value == 245)
         {
             _logger.LogInformation("Closing MultipleHelpWindow");