Have you considered putting the initialization cod...
# tornadofx
c
Have you considered putting the initialization code in an onDock() rather than passing it from the App class directly?