8000 Cannot create multiple GenericButtonConfigItems · Issue #38 · AinaVT/LethalConfig · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Cannot create multiple GenericButtonConfigItems #38
Closed
@FerusGrim

Description

@FerusGrim

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ValidatingThis issue is being validated after changes have been madebugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0