fix windows
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -333,7 +333,7 @@ pub fn hide_app_window(window: &wry::WebView) {
|
||||
{
|
||||
use tao::platform::windows::WindowExtWindows;
|
||||
window.set_visible(false);
|
||||
window.set_skip_taskbar(true);
|
||||
// window.set_skip_taskbar(true);
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
|
||||
@@ -16,7 +16,7 @@ mod impl_ {
|
||||
#[allow(unused)]
|
||||
pub fn build_menu_bar(menu: Menu, window: &Window) {
|
||||
#[cfg(target_os = "windows")]
|
||||
menu.init_for_hwnd(window.raw_display_handle_rwh_05());
|
||||
menu.init_for_hwnd(window.hwnd());
|
||||
|
||||
// #[cfg(target_os = "linux")]
|
||||
// {
|
||||
|
||||
Reference in new issue
Block a user