feat(window): adds skip_taskbar for windows
This commit is contained in:
parent
545cc909c9
commit
9cfb0f4a09
2 changed files with 7 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue