feat(window): adds skip_taskbar for windows

This commit is contained in:
MrAntix 2024-01-21 13:14:09 +00:00
parent 545cc909c9
commit 9cfb0f4a09
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,9 @@ pub struct PlatformSpecific {
/// Drag and drop support
pub drag_and_drop: bool,
/// Whether show or hide the window icon in the taskbar.
pub skip_taskbar: bool,
}
impl Default for PlatformSpecific {
@ -16,6 +19,7 @@ impl Default for PlatformSpecific {
Self {
parent: None,
drag_and_drop: true,
skip_taskbar: false,
}
}
}

View file

@ -84,6 +84,9 @@ pub fn window_settings(
}
window_builder = window_builder
.with_drag_and_drop(settings.platform_specific.drag_and_drop);
window_builder = window_builder
.with_skip_taskbar(settings.platform_specific.skip_taskbar);
}
#[cfg(target_os = "macos")]