瀏覽代碼

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!())