From 677efed4e890f378401c72908b22aaf9dddf9daf Mon Sep 17 00:00:00 2001 From: Ryan Naddy Date: Thu, 31 Oct 2024 18:57:08 -0500 Subject: [PATCH] added skip taskbar --- internal/backends/winit/winitwindowadapter.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/backends/winit/winitwindowadapter.rs b/internal/backends/winit/winitwindowadapter.rs index 6fd17f3b939..f912a3a2308 100644 --- a/internal/backends/winit/winitwindowadapter.rs +++ b/internal/backends/winit/winitwindowadapter.rs @@ -153,21 +153,21 @@ impl WinitWindowOrNone { } } - fn set_window_disabled(&self, disabled: bool) { + fn set_window_disabled(&self, _disabled: bool) { match self { Self::HasWindow(_window) => { #[cfg(target_family = "windows")] - _window.set_enable(!disabled); + _window.set_enable(!_disabled); } Self::None(..) => { /* Winit doesn't have an attribute for this. */ } } } - fn set_skip_taskbar(&self, disabled: bool) { + fn set_skip_taskbar(&self, _disabled: bool) { match self { Self::HasWindow(_window) => { #[cfg(target_family = "windows")] - _window.set_skip_taskbar(disabled); + _window.set_skip_taskbar(_disabled); } Self::None(..) => { /* Winit doesn't have an attribute for this. */ } }