We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 108ab90 commit 6c047aeCopy full SHA for 6c047ae
.changes/hide-windows-on-cleanup.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": "patch:bug"
3
4
+
5
+Fix window white flashing on exit on Windows
core/tauri/src/app.rs
@@ -772,10 +772,12 @@ macro_rules! shared_app_impl {
772
#[cfg(all(desktop, feature = "tray-icon"))]
773
self.manager.tray.icons.lock().unwrap().clear();
774
self.manager.resources_table().clear();
775
- for (_, window) in self.manager.windows().iter() {
+ for (_, window) in self.manager.windows() {
776
window.resources_table().clear();
777
+ #[cfg(windows)]
778
+ let _ = window.hide();
779
}
- for (_, webview) in self.manager.webviews().iter() {
780
+ for (_, webview) in self.manager.webviews() {
781
webview.resources_table().clear();
782
783
0 commit comments