Skip to content

Commit 6409062

Browse files
committed
Fix flashing on launch on Windows
Thanks @arichiaki on Discord again!
1 parent 9e51311 commit 6409062

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/desktop/src/ui/window.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,6 @@ impl Builder {
587587
window
588588
};
589589

590-
window.window.set_visible(true);
591-
592590
let gfx_surface =
593591
GfxSurface::new(&window.window, &window.gfx_device, window.srgb_mode);
594592
let imgui_gfx = imgui_wgpu::Renderer::new(
@@ -704,6 +702,7 @@ impl Builder {
704702
match event {
705703
Event::NewEvents(StartCause::Init) => {
706704
redraw();
705+
window.window.set_visible(true);
707706
}
708707

709708
Event::WindowEvent {

0 commit comments

Comments
 (0)