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 577bec518d80cf135ac8f2e8924d840eae1631a5..53cdf94754795ce6e7b4729284079a944ac4d52d 160000 (submodule)
--- a/LLib
+++ b/LLib
@@ -1 +1 @@
-Subproject commit 577bec518d80cf135ac8f2e8924d840eae1631a5
+Subproject commit 53cdf94754795ce6e7b4729284079a944ac4d52d
index 42f01dcd129dea9bcadf2472a8e480316bf83510..352e18ce360010971a6e39928edc6e5c393ec5d1 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 e6d2a16d56d0f7d15b9ede7534c42f9045999965..65fdc801d3417ae9f1b12131d922a54b71a4a370 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 5903ece67c23877dc09c27cae9d04e63379c40e4..bab81461c0652f40b430cdc4c140b8c2a84ebd44 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 5cbb6e9d62a93cd90d7480dfe8105054f5118b89..72386e06911527c276283ee547c9eee93198cac1 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 fa5b56da2262609edb5bb7134ddd16300889deef..b25b94f59634cf94124321459ed1328e60491f86 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 7532ac5ea880c3bd2d8a38d62e44404d74c627a1..e8a29f518cb741f836553d88fc06e701749baaf2 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 1463895a5b332740060516ad328122b2edc380de..18f303c16ac553d731b6af940ef29380926fcbb3 100644 (file)
@@ -141,7 +141,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
         return true;
     }
 
-    public override void Draw()
+    public override void DrawContent()
     {
         try
         {