Marcin Wisniowski
10/30/2017, 7:35 PMrunAsync {} ui { //code }
, it's obviously not the correct way though. It probably needs to wait for something to initialize and the runAsync/ui does that, but what would be the proper way to defer execution to when the View (?) is ready?carlw
10/30/2017, 7:42 PMcarlw
10/30/2017, 7:42 PMMarcin Wisniowski
10/30/2017, 7:44 PMrunAsync
, there is no long running operation, but it makes the code in the ui
block work, because it probably defers it to when the View is ready.carlw
10/30/2017, 7:45 PMcarlw
10/30/2017, 7:45 PMMarcin Wisniowski
10/30/2017, 7:46 PMoverride fun onDock() {
super.onDock()
primaryStage.close()
}
Marcin Wisniowski
10/30/2017, 7:46 PMMarcin Wisniowski
10/30/2017, 7:46 PMoverride fun onDock() {
super.onDock()
runAsync {} ui {
primaryStage.close()
}
}
carlw
10/30/2017, 7:47 PMMarcin Wisniowski
10/30/2017, 7:49 PMreplaceWith()
can only replace a View with a View.Marcin Wisniowski
10/30/2017, 7:52 PMMarcin Wisniowski
10/30/2017, 7:53 PMMarcin Wisniowski
10/30/2017, 7:54 PMcarlw
10/30/2017, 7:56 PMMarcin Wisniowski
10/30/2017, 7:58 PMcarlw
10/30/2017, 7:58 PMMarcin Wisniowski
10/30/2017, 7:58 PMMarcin Wisniowski
10/30/2017, 7:59 PMMarcin Wisniowski
10/30/2017, 8:01 PMMarcin Wisniowski
10/30/2017, 8:02 PMMarcin Wisniowski
10/30/2017, 8:03 PMcarlw
10/30/2017, 8:12 PMMarcin Wisniowski
10/30/2017, 8:24 PMcarlw
10/30/2017, 8:27 PMMarcin Wisniowski
10/30/2017, 8:28 PMMarcin Wisniowski
10/30/2017, 8:28 PMcarlw
10/30/2017, 8:29 PMMarcin Wisniowski
10/30/2017, 8:29 PMcarlw
10/30/2017, 8:31 PM