But if I change the logic to open the secondary st...
# tornadofx
a
But if I change the logic to open the secondary stage as follows, I can properly subscribe to secondary stage WINDOW_SHOWN event
Copy code
button ("Second View") {
            setOnAction {
                val stage = Stage()
                stage.setOnShown {
                    println("Secondary $it")
                }
                val scene = Scene(SecondaryView().root)
                FX.applyStylesheetsTo(scene)
                stage.scene = scene
                stage.show()
            }
        }
@edvin can we modify the
openWindow
or
openModal
so that we can properly subscribe to stage events?