I have a plugins generated by "plugins builder" with simple Ok / Cancel button / combo box to display canvas layers. When i cick on "OK" button, plugins is not close and if i use it again, my components are not reloaded as first time and add again existing values.
I could insert condition in my python code to not load layer again if already exist in my combo box but i think it's better to entirely close and open plugin without taking into account the previous state.
Same result is know when user click on window's red cross to close.
What is the function to properly close plugins ?