disable linux menubar

This commit is contained in:
Jonathan Kelley committed 2024-01-06 00:10:46 -08:00
1 parent 8679656d16
commit d07808634a
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ impl<P: 'static> App<P> {
/// Different hide implementations per platform
#[allow(unused)]
pub fn hide_app_window(webview: &wry::WebView) {
pub fn hide_app_window(window: &wry::WebView) {
#[cfg(target_os = "windows")]
{
use tao::platform::windows::WindowExtWindows;
+6 -6
View File
@@ -18,12 +18,12 @@ mod impl_ {
#[cfg(target_os = "windows")]
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")]
menu.init_for_nsapp();