mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Groups with < 2 dropdown options hide
This commit is contained in:
parent
4b48805233
commit
c7d4cc7171
1 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue