Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better organization of operations that should trigger on certain actions #166

Open
TrevorBurgoyne opened this issue Sep 20, 2024 · 0 comments
Labels
refactor The code should be better

Comments

@TrevorBurgoyne
Copy link
Member

There are many updates/filterings/drawing etc that needs to occur every time specific actions occur, ie editing, moving, deleting, etc. Currently if you want to add/remove such behavior, you have to track down a billion places where a function call should occur.

Since actions are already recorded via record_action(), we can probably gather some of these redundant groupings of function calls into record_action() and just have a big switch statement with all possible action types and their associated "listeners". This would make debugging/development of such behaviors a heck of a lot nicer i think

@TrevorBurgoyne TrevorBurgoyne added the refactor The code should be better label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor The code should be better
Projects
None yet
Development

No branches or pull requests

1 participant