Przeglądaj źródła

fix(docs): splashscreen guide using dropped Params syntax

Lucas Nogueira 4 lat temu
rodzic
commit
178164b259
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      docs/usage/guides/visual/splashscreen.md

+ 2 - 2
docs/usage/guides/visual/splashscreen.md

@@ -89,10 +89,10 @@ fn main() {
       // ...
 
       // After it's done, close the splashscreen and display the main window
-      if let Some(splashscreen) = app.get_window(&"splashscreen".into()) {
+      if let Some(splashscreen) = app.get_window("splashscreen") {
         splashscreen.close().unwrap();
       }
-      app.get_window(&"main".into()).unwrap().show().unwrap();
+      app.get_window("main").unwrap().show().unwrap();
       Ok(())
     })
     .run(tauri::generate_context!())