Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(workaround): temporary workaround broken multi window ipc issue #353

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading