Closed
Description
When creating a GenericButtonConfigItem, the first one registers fine, but the second is discarded as a duplicate.
[Info :ainavt.lc.lethalconfig] Registered config "LethalConfig.ConfigItems.GenericButtonConfigItem"
[Warning:ainavt.lc.lethalconfig] Ignoring duplicated config "LethalConfig.ConfigItems.GenericButtonConfigItem"
LethalConfigManager.AddConfigItem(new GenericButtonConfigItem("Actions", "Reset",
"Reset all settings to their default values", "Reset", () =>
{
// Toggle logic
}));
LethalConfigManager.AddConfigItem(new GenericButtonConfigItem("Actions", "Toggle", "Manually toggle the plugin", "Toggle", LessBrightHarmonyPatch.ToggleLight));
There is no way I can see to differentiate these two items, other than the section and name, yet the second is not being identified as a separate item.
I'm sure I'm missing something, but I'm at a loss. :)