Fixed macos
This commit is contained in:
parent
7f6ae8910e
commit
2def6d5fff
1 changed files with 4 additions and 4 deletions
|
|
@ -51,14 +51,14 @@ impl From<ActivationPolicy> for NSApplicationActivationPolicy {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Additional methods on `WindowBuilder` that are specific to MacOS.
|
/// Additional methods on `WindowBuilder` that are specific to MacOS.
|
||||||
pub trait WindowBuilderExt<'a> {
|
pub trait WindowBuilderExt {
|
||||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a>;
|
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> WindowBuilderExt<'a> for WindowBuilder<'a> {
|
impl WindowBuilderExt for WindowBuilder {
|
||||||
/// Sets the activation policy for the window being built
|
/// Sets the activation policy for the window being built
|
||||||
#[inline]
|
#[inline]
|
||||||
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder<'a> {
|
fn with_activation_policy(mut self, activation_policy: ActivationPolicy) -> WindowBuilder {
|
||||||
self.platform_specific.activation_policy = activation_policy;
|
self.platform_specific.activation_policy = activation_policy;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue