From c7d4cc7171bfb05821c2fe455a1632e8aaafdfb3 Mon Sep 17 00:00:00 2001 From: Minizbot2012 Date: Sat, 16 Jan 2021 13:03:51 -0500 Subject: [PATCH] Groups with < 2 dropdown options hide --- Penumbra/UI/SettingsInterface.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Penumbra/UI/SettingsInterface.cs b/Penumbra/UI/SettingsInterface.cs index 2c9d0f34..67218ce7 100644 --- a/Penumbra/UI/SettingsInterface.cs +++ b/Penumbra/UI/SettingsInterface.cs @@ -632,10 +632,12 @@ namespace Penumbra.UI case "Single": { var code = conf[g.Key]; - if(ImGui.Combo(g.Value.GroupName, ref code, g.Value.Options.Select(x=>x.OptionName).ToArray(), g.Value.Options.ToArray().Length)) { - conf[g.Key] = code; - _plugin.ModManager.Mods.Save(); - _plugin.ModManager.CalculateEffectiveFileList(); + if(g.Value.Options.Count >1) { + if(ImGui.Combo(g.Value.GroupName, ref code, g.Value.Options.Select(x=>x.OptionName).ToArray(), g.Value.Options.ToArray().Length)) { + conf[g.Key] = code; + _plugin.ModManager.Mods.Save(); + _plugin.ModManager.CalculateEffectiveFileList(); + } } break; }