From 504fcdcd4c3e0adc18cfc06997b55728a122919d Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Fri, 1 Oct 2021 03:05:25 +0200 Subject: [PATCH] feat: add dummy below open categories --- .../Interface/Internal/Windows/PluginInstallerWindow.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index ba95fe623..ff098ca82 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -664,7 +664,7 @@ namespace Dalamud.Interface.Internal.Windows } ImGui.SetNextItemOpen(groupIdx == this.categoryManager.CurrentGroupIdx); - if (ImGui.CollapsingHeader(groupInfo.Name)) + if (ImGui.CollapsingHeader(groupInfo.Name, groupIdx == this.categoryManager.CurrentGroupIdx ? ImGuiTreeNodeFlags.OpenOnDoubleClick : ImGuiTreeNodeFlags.None)) { if (this.categoryManager.CurrentGroupIdx != groupIdx) { @@ -695,6 +695,11 @@ namespace Dalamud.Interface.Internal.Windows } ImGui.Unindent(); + + if (groupIdx != this.categoryManager.GroupList.Length - 1) + { + ImGuiHelpers.ScaledDummy(5); + } } } }