Skip to content

Commit af55950

Browse files
fixes the build error
1 parent fa9ce4c commit af55950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser_window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl BrowserWindow {
290290
#[cfg(target_os = "windows")]
291291
{
292292
use tao::platform::windows::WindowExtWindows;
293-
menu.init_for_hwnd(window.hwnd() as isize).map_err(|e| {
293+
_menu.init_for_hwnd(window.hwnd() as isize).map_err(|e| {
294294
napi::Error::new(
295295
napi::Status::GenericFailure,
296296
format!("Failed to set global menu: {}", e),
@@ -300,7 +300,7 @@ impl BrowserWindow {
300300
#[cfg(target_os = "linux")]
301301
{
302302
use tao::platform::unix::WindowExtUnix;
303-
menu.init_for_gtk_window(window.gtk_window(), window.default_vbox()).map_err(|e| {
303+
_menu.init_for_gtk_window(window.gtk_window(), window.default_vbox()).map_err(|e| {
304304
napi::Error::new(
305305
napi::Status::GenericFailure,
306306
format!("Failed to set global menu: {}", e),

0 commit comments

Comments
 (0)