Skip to content

Commit

Permalink
added skip taskbar
Browse files Browse the repository at this point in the history
  • Loading branch information
TheColorRed committed Oct 31, 2024
1 parent 327c32b commit 677efed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/backends/winit/winitwindowadapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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. */ }
}
Expand Down

0 comments on commit 677efed

Please sign in to comment.