alilosoft
05/29/2019, 8:23 AMstop() method doesn't prevent me from closing the current view, so I used the following solution
override fun onDock() {
super.onDock()
currentStage?.setOnCloseRequest { event ->
if (patchStatus.running.value) {
alert(Alert.AlertType.WARNING, "Wait!", "Still working....")
event.consume()
}
}
}