Skip to content
Discussion options

You must be logged in to vote

That depends on if you want to exit the whole process, or just close the other windows but keeping the event loop running (for example if you want to keep it running in the system tray).

For the first version you'd listen to the CloseRequested event, check if it's the main window and then use exit js / rust to close everything.

For the second version, you'd have to keep track of the opened windows (their labels) yourself and then close them manually.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MrAmericanMike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants