Skip to content

[FEAT/BUG] Component name (gate number) should be reused #35

@rj45

Description

@rj45

When adding a component, if you switch components or stop adding a component, the component name (eg X19) increments when it shouldn't.

To fix this, on delete, if the component's name was the last one, decrement Circuit's nextName for that type (from the ComponentDesc).

The nextName also needs to be reset when the circuit is cleared.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions