From 26ee5371a55833341fc8f1774de80678a5e37403 Mon Sep 17 00:00:00 2001 From: goat Date: Mon, 12 Jun 2023 20:26:13 +0200 Subject: [PATCH] use correct cat + group idx to hide search bar --- .../Windows/PluginInstaller/PluginInstallerWindow.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs index d28401e73..fb7714098 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstaller/PluginInstallerWindow.cs @@ -522,8 +522,11 @@ internal class PluginInstallerWindow : Window, IDisposable ImGui.SetCursorPosX(windowSize.X - sortSelectWidth - (style.ItemSpacing.X * 2) - searchInputWidth - searchClearButtonWidth); + var isProfileManager = + this.categoryManager.CurrentGroupIdx == 1 && this.categoryManager.CurrentCategoryIdx == 2; + // Disable search if profile editor - using (ImRaii.Disabled(this.categoryManager.CurrentCategoryIdx == 14)) + using (ImRaii.Disabled(isProfileManager)) { var searchTextChanged = false; ImGui.SetNextItemWidth(searchInputWidth); @@ -548,7 +551,7 @@ internal class PluginInstallerWindow : Window, IDisposable } // Disable sort if changelogs or profile editor - using (ImRaii.Disabled(this.categoryManager.CurrentGroupIdx == 3 || this.categoryManager.CurrentCategoryIdx == 14)) + using (ImRaii.Disabled(this.categoryManager.CurrentGroupIdx == 3 || isProfileManager)) { ImGui.SameLine(); ImGui.SetCursorPosY(downShift);