We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b705582 commit 926ff74Copy full SHA for 926ff74
src-tauri/src/main.rs
@@ -6,8 +6,8 @@
6
use tauri::api::process::{Command, CommandEvent};
7
use tauri::Manager;
8
use std::collections::HashMap;
9
-use std::time::Duration;
10
-use async_std::task;
+// use std::time::Duration;
+// use async_std::task;
11
12
fn main() {
13
tauri::Builder::default()
@@ -106,7 +106,9 @@ fn main() {
106
let _ = main_window.eval(&navigation_script);
107
}
108
if line.contains("tauri-client-ready") {
109
- task::sleep(Duration::from_secs(2)).await;
+ // Skip waiting as the loading takes enough time
110
+ // for us to see the loading screen
111
+ // task::sleep(Duration::from_secs(2)).await;
112
113
// Apply final DPI settings before showing main window
114
#[cfg(target_os = "macos")]
0 commit comments