소스 검색

example: remove unncessary cfg

Jonathan Kelley 3 년 전
부모
커밋
cd5242bfc4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/hello_world.rs

+ 1 - 1
examples/hello_world.rs

@@ -2,7 +2,7 @@ use dioxus::prelude::*;
 use dioxus_desktop::tao::menu::MenuBar;
 
 fn main() {
-    dioxus::desktop::launch_cfg(app, |c| c.with_window(|w| w.with_menu(MenuBar::default())));
+    dioxus::desktop::launch(app);
 }
 
 fn app(cx: Scope) -> Element {