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 78e699e4f156b4dfcdcf2058589e08293533b854..2b72a1cfafbe65184b2f2dd8da9eb69f3b3373ff 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 fa00aebbbfe0977c10a2e143ddf31d6927a1f836..a975b817dbf87a4ed9135006c356dc6dd1adce95 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 273381771931c1b63ae3188b5d95f1608b7d849a..8d610825a02e5ec7e921a054836a73836fdeb098 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 b25b94f59634cf94124321459ed1328e60491f86..78218562ef6dd7a98bba39da5c013c55cb342ac9 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 18f303c16ac553d731b6af940ef29380926fcbb3..5723c0dd888d31a9bd0ff7b8465796f7d2aa546e 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 = () =>
             {