If I have `class MyApp:App(MyView::class)` and lat...
# tornadofx
s
If I have
class MyApp:App(MyView::class)
and later from another window (which has a different scope) I do
find<MyView>().openWindow()?.requestFocus()
, how do I get it to focus the original view instead of creating a new window?
r
Instead of calling
openWindow()
, just get the stage for the view and request focus (optionally opening a window if there isn't a stage).