Is there a way to cancel the on dismiss request to...
# compose-desktop
g
Is there a way to cancel the on dismiss request to a window? for example, when the user clicks the X in the window frame I would like to show a popup confirming the close in some circumstances. If the use clicks "no" on the popup it should cancel the dismiss request
d
Are you using the new composable Window API?
g
No it's the legacy API. I haven't taken the time to move to the new one
Does the new API support this?
d
It does indeed. You can override the onDismissRequest
👍 1