-
When I close out a Slint window, the callback specified by |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
on_close_requested() is to be used when the close request comes from the window manager. |
Beta Was this translation helpful? Give feedback.
on_close_requested() is to be used when the close request comes from the window manager.
You can simulate this with a slint::platform::WindowEvent::CloseRequested event. But I wouldn't recommand to do that for the "Exit" menu item. For that, i'd recommend that the callback handler for Exit and the for on_close_requested call the same helper function.