Is there a way to exit modal operator after clicking the operator button again?
I initially thought about looking throught the list of handlers and remove the modal operator if it’s already on the list. But i looks like we don’t have access to it with the python api: