disable linux menubar
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -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;
|
||||||
|
|||||||
@@ -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")]
|
// #[cfg(target_os = "linux")]
|
||||||
{
|
// {
|
||||||
use tao::platform::unix::WindowExtUnix;
|
// use tao::platform::unix::WindowExtUnix;
|
||||||
menu.init_for_gtk_window(window, None);
|
// menu.init_for_gtk_window(window, None);
|
||||||
// menu.init_for_gtk_window(window, Some(&ertical_gtk_box));
|
// 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();
|
||||||
|
|||||||
Reference in new issue
Block a user