Skip to content

Commit

Permalink
fix (regression): hide desktop window until initial render (#2614)
Browse files Browse the repository at this point in the history
  • Loading branch information
imgurbot12 authored Jul 9, 2024
1 parent ecdc932 commit bb52280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/desktop/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit bb52280

Please sign in to comment.