mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 11:43:06 +03:00
fix(windows): hide windows on cleanup (#9612)
* Hide windows on cleanup * Add change file * Move hide window to a loop above
This commit is contained in:
parent
108ab9094a
commit
6c047aee14
5
.changes/hide-windows-on-cleanup.md
Normal file
5
.changes/hide-windows-on-cleanup.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": "patch:bug"
|
||||
---
|
||||
|
||||
Fix window white flashing on exit on Windows
|
@ -772,10 +772,12 @@ macro_rules! shared_app_impl {
|
||||
#[cfg(all(desktop, feature = "tray-icon"))]
|
||||
self.manager.tray.icons.lock().unwrap().clear();
|
||||
self.manager.resources_table().clear();
|
||||
for (_, window) in self.manager.windows().iter() {
|
||||
for (_, window) in self.manager.windows() {
|
||||
window.resources_table().clear();
|
||||
#[cfg(windows)]
|
||||
let _ = window.hide();
|
||||
}
|
||||
for (_, webview) in self.manager.webviews().iter() {
|
||||
for (_, webview) in self.manager.webviews() {
|
||||
webview.resources_table().clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user