Make window invisible until the first render (#1588)

This commit is contained in:
HKalbasi authored and GitHub committed 2023-10-29 13:09:07 -05:00
1 parent d4e6876ff6
commit 720bfdf231
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ pub fn build(
proxy: EventLoopProxy<UserWindowEvent>,
) -> (WebView, WebContext) {
let builder = cfg.window.clone();
let window = builder.build(event_loop).unwrap();
let window = builder.with_visible(false).build(event_loop).unwrap();
let file_handler = cfg.file_drop_handler.take();
let custom_head = cfg.custom_head.clone();
let index_file = cfg.custom_index.clone();