How to update the state of the context variable every time the selection changes
You have two approaches. I've mentioned them here in the past:
I'm having a problem that when I paste a layer into a layer selected then my selected layer is changed now and my context variable doesn't update the change. Is there a way to make the context self-update.
Thank you ^^