Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Lona Studio] Update the "add" menu when new components are created #338
The "add" menu is used to add new instances of components, "layers", to the current component's layer hierarchy.
Currently the "add" menu only scans for custom components when the UI is instantiated. This means that when new components are created, moved, or deleted, it can become stale:
This is pretty annoying, and usually requires restarting the app to fix. Let's make it so that the menu updates automatically. We want it to look like this (which is how it looks if you restart the app):
There are several steps involved, but most should reuse existing mechanisms in place for firing and responding to events.
We might run into issues along the way and have to change the plan, but let's start with this. Let me know if you run into anything weird!