Skip to content

Commit

Permalink
fix(workaround): temporary workaround broken multi window ipc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm committed Oct 7, 2024
1 parent de49329 commit 5680e19
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
10 changes: 0 additions & 10 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,16 +516,6 @@ pub fn run() {
.build(),
)
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
let splashscreen_window = app.get_webview_window("splashscreen").unwrap();
let main_window = app.get_webview_window("main").unwrap();
tauri::async_runtime::spawn(async move {
tokio::time::sleep(Duration::from_secs(3)).await;
splashscreen_window.close().unwrap();
main_window.show().unwrap();
});
Ok(())
})
.invoke_handler(tauri::generate_handler![
app_updates::fetch_update,
app_updates::install_update,
Expand Down
15 changes: 1 addition & 14 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,7 @@
"width": 1600,
"height": 900,
"label": "main",
"visible": false
},
{
"title": "Splashscreen",
"url": "public/splashscreen.html",
"label": "splashscreen",
"width": 528,
"height": 297,
"decorations": false,
"resizable": false,
"transparent": true,
"visible": true,
"center": true,
"focus": false
"visible": true
}
],
"security": {
Expand Down

0 comments on commit 5680e19

Please sign in to comment.