ソースを参照

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

Andrew Scott 11 ヶ月 前
コミット
bb52280a51
1 ファイル変更2 行追加1 行削除
  1. 2 1
      packages/desktop/src/app.rs

+ 2 - 1
packages/desktop/src/app.rs

@@ -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());