瀏覽代碼

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 {