fix #409: iemgui settings dialog of toggle button doesn't close
This fixes two regressions caused by the pdgui refactoring:
- tgl dialog won't close
- canvas dialog won't close
- probably some other regressions redrawing canvas redrect and tgl cross
This fixes two regressions caused by the pdgui refactoring: