-
Notifications
You must be signed in to change notification settings - Fork 265
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
onChangeSelection event fires too many times #1468
Comments
Yes, that's a stupid bug that needs to be squashed and usually requires hacks to prevent macros from running multiple times which is painful. Is this the only event macro that fires multiple times? |
I don't know a thing about When I changed macros to update the properties of interest instead of sending the whole token every time, I tried to keep EDIT: moving a token through the GUI fires |
- Fix onChangeSelection firing 2-4 times per token selection change - Close RPTools#1468
PR #1470 fixes this for |
- Fix onChangeSelection firing 2-4 times per token selection change - Fix onTokenChange firing 2 times per token move - Close RPTools#1468
Tested with test case provided and modified to include |
Describe the bug
The event
onChangeSelection
fires too many times. This leads to macros being executed multiple times instead of once, lagging the system and possibly causing bugs.To Reproduce
Steps to reproduce the behavior:
print
with[r: macro.args]
insideExpected behavior
The onChangeSelection event is only fired once.
MapTool Info
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: