Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #3113
Fixes window not hiding for WindowCloseBehaviour:LastWindowHides,
WindowCloseBehaviour:LastWindowHides had a comment "Closing the last window will not actually close it, just hide it" but it was implemented in a way that hides all the windows so I added WindowCloseBehaviour:WindowHides that does that, and changed LastWindowHides so that it only hides on the last one, and removes the rest.
Changed multiwindow example to include tray icon & WindowCloseBehaviour:WindowHides
Temporary fix for new window not closing #3342 or at least I think that there is something else going on here and hiding the closed window is just a temporary solution to this problem since it worked in 0.5 without that.
I also changed multiwindow example to use async move, if you don't use it it gets stuck on
dioxus/packages/desktop/src/webview.rs
Line 383 in 30f760c