Hi, how can I create a new separate Window ?
# compose-desktop
a
Hi, how can I create a new separate Window ?
d
Using the
Window
composable?
a
Thanks, but I don't find what I have to put for
onCloseRequest
argument, if I put nothing I can't close the new window, if I put
::exitApplication
all the windows closes
d
Ah, I see. You can use a boolean.
It's just another composable that you can wrap with an if statement.
a
Ah I see, I would never have thought like that but okay, thanks !
k
Thanks for this info!
So what sort of test would you need to make with that
if
tho?
d
if (isAdditionalWindowVisible) { Window(.....) { ... } }
k
Oh! Thank you so much! That will give me some food for thought with my project. Thanks for your help mate!