Open qu1ck opened 2 years ago
@qu1ck thanks for the suggestions... I'll update the tools accordingly
@qu1ck I'm doing some tests... is there a way to check if the dialog isn't closed correctly and the process doesn't close clean?
Check in task manager (or ps -aux | grep kicad
) after closing all kicad windows. If dialog is not destroyed the process will remain running.
In wxWidgets the main event loop doesn't end unless all top level windows are destroyed. Your plugin doesn't destroy it's dialog window properly and it prevents kicad.exe from exiting.
Always call
dialog.Destroy
, afterShow()
orShowModal()
, best to do it in afinally
block.Also no need to do both
Show()
andShowModal()
, justShowModal()
has same effect.