``` init { println("reading authors") ...
# tornadofx
r
Copy code
init {
        println("reading authors")
        runAsync {
            readAllAuthors()
        } ui {
            root.items = it
            controller.authorlist = it
        }
        subscribe<MainController.AuthorSelected> {
            root.selectionModel.select(controller.authorModel.item)
            root.scrollTo(controller.authorModel.item)
        }
    }
👍 1