Hello everyone! Building an app with TornadoFX and...
# tornadofx
s
Hello everyone! Building an app with TornadoFX and saw that hot reloading is supported on the TorandoFX website, but I can't find a way to enable it. Is it an option in build settings?
I have put
Copy code
init {
        reloadViewsOnFocus()
        reloadStylesheetsOnFocus()
    }
in my main App file and get the message that it is reloading in my Intellij console, but it doesn't actually change.
c
Are you using a Stylesheet with your App? That's a second argument to the App constructor. class MyApp: App(MyView::class, MyStyle::class)
s
Thank you for the reply. I am using a stylesheet, I have it in my constructor already.
c
Can u post a little code and the platform you’re working on?
s
I'm just working on desktop, running on Windows 10 for the moment. https://gist.github.com/shanling/da19347231c359fb71da1e96a4dca17c Here's a Gist of my Main.kt file. It's pretty basic, lol.