Update logic to uncollapse window if it is currently showing but collapsed
authorLiza Carvelli <liza@carvel.li>
Sat, 17 May 2025 13:36:40 +0000 (15:36 +0200)
committerLiza Carvelli <liza@carvel.li>
Sat, 17 May 2025 13:36:46 +0000 (15:36 +0200)
LLib
Questionable/Windows/ConfigWindow.cs
Questionable/Windows/JournalProgressWindow.cs
Questionable/Windows/OneTimeSetupWindow.cs
Questionable/Windows/PriorityWindow.cs
Questionable/Windows/QuestSelectionWindow.cs
Questionable/Windows/QuestValidationWindow.cs
Questionable/Windows/QuestWindow.cs

diff --git a/LLib b/LLib
index 577bec5..53cdf94 160000 (submodule)
--- a/LLib
+++ b/LLib
@@ -1 +1 @@
-Subproject commit 577bec518d80cf135ac8f2e8924d840eae1631a5
+Subproject commit 53cdf94754795ce6e7b4729284079a944ac4d52d
index 42f01dc..352e18c 100644 (file)
@@ -41,7 +41,7 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
 
     public WindowConfig WindowConfig => _configuration.ConfigWindowConfig;
 
-    public override void Draw()
+    public override void DrawContent()
     {
         using var tabBar = ImRaii.TabBar("QuestionableConfigTabs");
         if (!tabBar)
index e6d2a16..65fdc80 100644 (file)
@@ -59,7 +59,7 @@ internal sealed class JournalProgressWindow : LWindow, IDisposable
         _gatheringJournalComponent.RefreshCounts();
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         using var tabBar = ImRaii.TabBar("Journal");
         if (!tabBar)
index 5903ece..bab8146 100644 (file)
@@ -38,7 +38,7 @@ internal sealed class OneTimeSetupWindow : LWindow
         _logger.LogInformation("One-time setup needed: {IsOpen}", IsOpen);
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         _pluginConfigComponent.Draw(out bool allRequiredInstalled);
 
index 5cbb6e9..72386e0 100644 (file)
@@ -57,7 +57,7 @@ internal sealed class PriorityWindow : LWindow
         };
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         ImGui.Text("Quests to do first:");
         DrawQuestFilter();
index fa5b56d..b25b94f 100644 (file)
@@ -134,7 +134,7 @@ internal sealed class QuestSelectionWindow : LWindow
         _offeredQuests = [];
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         if (_offeredQuests.Count != 0)
             ImGui.Checkbox("Only show quests currently offered", ref _onlyAvailableQuests);
index 7532ac5..e8a29f5 100644 (file)
@@ -35,7 +35,7 @@ internal sealed class QuestValidationWindow : LWindow
         };
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         using var table = ImRaii.Table("QuestSelection", 5, ImGuiTableFlags.Borders | ImGuiTableFlags.ScrollY);
         if (!table)
index 1463895..18f303c 100644 (file)
@@ -141,7 +141,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
         return true;
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         try
         {