mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +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":
|
case "Single":
|
||||||
{
|
{
|
||||||
var code = conf[g.Key];
|
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)) {
|
if(g.Value.Options.Count >1) {
|
||||||
conf[g.Key] = code;
|
if(ImGui.Combo(g.Value.GroupName, ref code, g.Value.Options.Select(x=>x.OptionName).ToArray(), g.Value.Options.ToArray().Length)) {
|
||||||
_plugin.ModManager.Mods.Save();
|
conf[g.Key] = code;
|
||||||
_plugin.ModManager.CalculateEffectiveFileList();
|
_plugin.ModManager.Mods.Save();
|
||||||
|
_plugin.ModManager.CalculateEffectiveFileList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue