mirror of
https://github.com/tauri-apps/winit.git
synced 2026-02-04 02:11:19 +01:00
Fix only call show_all when needed
This commit is contained in:
@@ -192,7 +192,7 @@ impl<T: 'static> EventLoop<T> {
|
||||
),
|
||||
WindowRequest::Visible(visible) => {
|
||||
if visible {
|
||||
window.show();
|
||||
window.show_all();
|
||||
} else {
|
||||
window.hide();
|
||||
}
|
||||
|
||||
@@ -237,7 +237,11 @@ impl Window {
|
||||
window.set_icon(Some(&icon.inner.into()));
|
||||
}
|
||||
|
||||
window.show_all();
|
||||
if attributes.visible {
|
||||
window.show_all();
|
||||
} else {
|
||||
window.hide();
|
||||
}
|
||||
|
||||
let window_requests_tx = event_loop_window_target.window_requests_tx.clone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user