fix headless windows

This commit is contained in:
Evan Almloff committed 2023-12-08 15:14:32 -06:00
1 parent 0e3fd225a8
commit 8984482b63
4 files changed
+18 -9

No files matched your search

+2
View File
@@ -33,6 +33,7 @@ pub(crate) fn build(
let mut web_context = WebContext::new(cfg.data_dir.clone());
let edit_queue = EditQueue::default();
let headless = !cfg.window.window.visible;
let mut webview = WebViewBuilder::new(window)
.unwrap()
@@ -55,6 +56,7 @@ pub(crate) fn build(
index_file.clone(),
&root_name,
&edit_queue,
headless
)
}
})