Bläddra i källkod

disable linux menubar

Jonathan Kelley 1 år sedan
förälder
incheckning
d07808634a
2 ändrade filer med 7 tillägg och 7 borttagningar
  1. 1 1
      packages/desktop/src/app.rs
  2. 6 6
      packages/desktop/src/menubar.rs

+ 1 - 1
packages/desktop/src/app.rs

@@ -328,7 +328,7 @@ impl<P: 'static> App<P> {
 
 
 /// Different hide implementations per platform
 /// Different hide implementations per platform
 #[allow(unused)]
 #[allow(unused)]
-pub fn hide_app_window(webview: &wry::WebView) {
+pub fn hide_app_window(window: &wry::WebView) {
     #[cfg(target_os = "windows")]
     #[cfg(target_os = "windows")]
     {
     {
         use tao::platform::windows::WindowExtWindows;
         use tao::platform::windows::WindowExtWindows;

+ 6 - 6
packages/desktop/src/menubar.rs

@@ -18,12 +18,12 @@ mod impl_ {
         #[cfg(target_os = "windows")]
         #[cfg(target_os = "windows")]
         menu.init_for_hwnd(window);
         menu.init_for_hwnd(window);
 
 
-        #[cfg(target_os = "linux")]
-        {
-            use tao::platform::unix::WindowExtUnix;
-            menu.init_for_gtk_window(window, None);
-            // menu.init_for_gtk_window(window, Some(&ertical_gtk_box));
-        }
+        // #[cfg(target_os = "linux")]
+        // {
+        // use tao::platform::unix::WindowExtUnix;
+        // menu.init_for_gtk_window(window, None);
+        // menu.init_for_gtk_window(window, Some(&ertical_gtk_box));
+        // }
 
 
         #[cfg(target_os = "macos")]
         #[cfg(target_os = "macos")]
         menu.init_for_nsapp();
         menu.init_for_nsapp();