From d6b34853f58c639187f67e1e7ecc405b9099d8a0 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sat, 10 May 2025 20:06:12 +0200 Subject: [PATCH] Add logic to uncollapse window if it is currently showing but collapsed --- LLib | 2 +- Questionable/Controller/CommandHandler.cs | 4 ++-- Questionable/DalamudInitializer.cs | 2 +- Questionable/Windows/QuestComponents/ActiveQuestComponent.cs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LLib b/LLib index edbe9b6b..577bec51 160000 --- a/LLib +++ b/LLib @@ -1 +1 @@ -Subproject commit edbe9b6be03249192cb07000ca032dd91f7c5f13 +Subproject commit 577bec518d80cf135ac8f2e8924d840eae1631a5 diff --git a/Questionable/Controller/CommandHandler.cs b/Questionable/Controller/CommandHandler.cs index de7b06b8..78e699e4 100644 --- a/Questionable/Controller/CommandHandler.cs +++ b/Questionable/Controller/CommandHandler.cs @@ -94,7 +94,7 @@ internal sealed class CommandHandler : IDisposable { case "c": case "config": - _configWindow.Toggle(); + _configWindow.ToggleOrUncollapse(); break; case "start": @@ -141,7 +141,7 @@ internal sealed class CommandHandler : IDisposable break; case "": - _questWindow.Toggle(); + _questWindow.ToggleOrUncollapse(); break; default: diff --git a/Questionable/DalamudInitializer.cs b/Questionable/DalamudInitializer.cs index 1c6f8a66..fa00aebb 100644 --- a/Questionable/DalamudInitializer.cs +++ b/Questionable/DalamudInitializer.cs @@ -106,7 +106,7 @@ internal sealed class DalamudInitializer : IDisposable private void ToggleQuestWindow() { if (_configuration.IsPluginSetupComplete()) - _questWindow.Toggle(); + _questWindow.ToggleOrUncollapse(); else _oneTimeSetupWindow.IsOpen = true; } diff --git a/Questionable/Windows/QuestComponents/ActiveQuestComponent.cs b/Questionable/Windows/QuestComponents/ActiveQuestComponent.cs index 3a00bbb6..520fd102 100644 --- a/Questionable/Windows/QuestComponents/ActiveQuestComponent.cs +++ b/Questionable/Windows/QuestComponents/ActiveQuestComponent.cs @@ -127,7 +127,7 @@ internal sealed partial class ActiveQuestComponent ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.SortAmountDown)) - _priorityWindow.Toggle(); + _priorityWindow.ToggleOrUncollapse(); } } @@ -333,7 +333,7 @@ internal sealed partial class ActiveQuestComponent ImGui.SameLine(); if (ImGuiComponents.IconButton(FontAwesomeIcon.SortAmountDown)) - _priorityWindow.Toggle(); + _priorityWindow.ToggleOrUncollapse(); if (_commandManager.Commands.TryGetValue("/questinfo", out var commandInfo)) { -- 2.20.1