Window tweaks
authorLiza Carvelli <liza@carvel.li>
Sun, 1 Jun 2025 20:03:33 +0000 (22:03 +0200)
committerLiza Carvelli <liza@carvel.li>
Sun, 1 Jun 2025 20:03:33 +0000 (22:03 +0200)
Questionable/Controller/CommandHandler.cs
Questionable/DalamudInitializer.cs
Questionable/Windows/QuestComponents/QuickAccessButtonsComponent.cs
Questionable/Windows/QuestSelectionWindow.cs
Questionable/Windows/QuestWindow.cs

index 78e699e..2b72a1c 100644 (file)
@@ -98,7 +98,7 @@ internal sealed class CommandHandler : IDisposable
                 break;
 
             case "start":
-                _questWindow.IsOpen = true;
+                _questWindow.IsOpenAndUncollapsed = true;
                 _questController.Start("Start command");
                 break;
 
@@ -177,7 +177,7 @@ internal sealed class CommandHandler : IDisposable
         if (!_configuration.IsPluginSetupComplete())
         {
             if (string.IsNullOrEmpty(arguments))
-                _oneTimeSetupWindow.IsOpen = true;
+                _oneTimeSetupWindow.IsOpenAndUncollapsed = true;
             else
                 _chatGui.PrintError("Please complete the one-time setup first.", MessageTag, TagColor);
             return true;
index fa00aeb..a975b81 100644 (file)
@@ -108,7 +108,7 @@ internal sealed class DalamudInitializer : IDisposable
         if (_configuration.IsPluginSetupComplete())
             _questWindow.ToggleOrUncollapse();
         else
-            _oneTimeSetupWindow.IsOpen = true;
+            _oneTimeSetupWindow.IsOpenAndUncollapsed = true;
     }
 
     public void Dispose()
index 2733817..8d61082 100644 (file)
@@ -92,7 +92,7 @@ internal sealed class QuickAccessButtonsComponent
 
         ImGui.SameLine();
         if (ImGuiComponents.IconButton(FontAwesomeIcon.BookBookmark))
-            _journalProgressWindow.IsOpen = true;
+            _journalProgressWindow.IsOpenAndUncollapsed = true;
         if (ImGui.IsItemHovered())
             ImGui.SetTooltip("Journal Progress");
 
@@ -101,7 +101,7 @@ internal sealed class QuickAccessButtonsComponent
         {
             ImGui.SameLine();
             if (DrawValidationIssuesButton())
-                _questValidationWindow.IsOpen = true;
+                _questValidationWindow.IsOpenAndUncollapsed = true;
         }
     }
 
index b25b94f..7821856 100644 (file)
@@ -103,7 +103,7 @@ internal sealed class QuestSelectionWindow : LWindow
             _offeredQuests = [];
         }
 
-        IsOpen = _quests.Count > 0;
+        IsOpenAndUncollapsed = _quests.Count > 0;
     }
 
     public unsafe void OpenForCurrentZone()
@@ -125,7 +125,7 @@ internal sealed class QuestSelectionWindow : LWindow
         }
 
         _offeredQuests = [];
-        IsOpen = true;
+        IsOpenAndUncollapsed = true;
     }
 
     public override void OnClose()
index 18f303c..5723c0d 100644 (file)
@@ -64,7 +64,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
         _interactionUiController = interactionUiController;
 
 #if DEBUG
-        IsOpen = true;
+        IsOpenAndUncollapsed = true;
 #endif
         SizeConstraints = new WindowSizeConstraints
         {
@@ -92,7 +92,7 @@ internal sealed class QuestWindow : LWindow, IPersistableWindowConfig
         {
             Icon = FontAwesomeIcon.Cog,
             IconOffset = new Vector2(1.5f, 1),
-            Click = _ => configWindow.IsOpen = true,
+            Click = _ => configWindow.IsOpenAndUncollapsed = true,
             Priority = int.MinValue,
             ShowTooltip = () =>
             {