use proper extension traits
This commit is contained in:
2 files changed
+7
-4
No files matched your search
@@ -331,14 +331,14 @@ impl<P: 'static> App<P> {
|
||||
pub fn hide_app_window(webview: &wry::WebView) {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
use wry::application::platform::windows::WindowExtWindows;
|
||||
use tao::platform::windows::WindowExtWindows;
|
||||
window.set_visible(false);
|
||||
window.set_skip_taskbar(true);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
use wry::application::platform::unix::WindowExtUnix;
|
||||
use tao::platform::unix::WindowExtUnix;
|
||||
window.set_visible(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,8 +13,11 @@ pub fn build_menu_bar(menu: Menu, window: &Window) {
|
||||
menu.init_for_hwnd(window);
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
menu.init_for_gtk_window(window, None);
|
||||
// menu.init_for_gtk_window(window, Some(&vertical_gtk_box));
|
||||
{
|
||||
use tao::platform::unix::WindowExtUnix;
|
||||
menu.init_for_gtk_window(window, None);
|
||||
// menu.init_for_gtk_window(window, Some(&vertical_gtk_box));
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
menu.init_for_nsapp();
|
||||
|
||||
Reference in new issue
Block a user