Merge pull request #2211 from MrAntix/windows_PlatformSpecific_skip_taskbar
feat(window): adds skip_taskbar for windows
This commit is contained in:
commit
a1114cada3
2 changed files with 7 additions and 0 deletions
|
|
@ -9,6 +9,9 @@ pub struct PlatformSpecific {
|
||||||
|
|
||||||
/// Drag and drop support
|
/// Drag and drop support
|
||||||
pub drag_and_drop: bool,
|
pub drag_and_drop: bool,
|
||||||
|
|
||||||
|
/// Whether show or hide the window icon in the taskbar.
|
||||||
|
pub skip_taskbar: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for PlatformSpecific {
|
impl Default for PlatformSpecific {
|
||||||
|
|
@ -16,6 +19,7 @@ impl Default for PlatformSpecific {
|
||||||
Self {
|
Self {
|
||||||
parent: None,
|
parent: None,
|
||||||
drag_and_drop: true,
|
drag_and_drop: true,
|
||||||
|
skip_taskbar: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,9 @@ pub fn window_settings(
|
||||||
}
|
}
|
||||||
window_builder = window_builder
|
window_builder = window_builder
|
||||||
.with_drag_and_drop(settings.platform_specific.drag_and_drop);
|
.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")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue