소스 검색

fix(docs): splashscreen guide using dropped Params syntax

Lucas Nogueira 4 년 전
부모
커밋
178164b259
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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!())