fix (regression): hide desktop window until initial render (#2614)

This commit is contained in:
Andrew Scott authored and GitHub committed 2024-07-09 12:32:05 -07:00
1 parent ecdc93232e
commit bb52280a51
1 file changed
+2 -1
+2 -1
View File
@@ -206,9 +206,10 @@ impl App {
pub fn handle_start_cause_init(&mut self) {
let virtual_dom = self.unmounted_dom.take().unwrap();
let cfg = self.cfg.take().unwrap();
let mut cfg = self.cfg.take().unwrap();
self.is_visible_before_start = cfg.window.window.visible;
cfg.window = cfg.window.with_visible(false);
let webview = WebviewInstance::new(cfg, virtual_dom, self.shared.clone());