fix: feature gate
This commit is contained in:
parent
5fca59df70
commit
408d37169a
2 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,7 @@ impl cosmic::Application for App {
|
||||||
.progress(1.0)
|
.progress(1.0)
|
||||||
.width(Length::Fill),
|
.width(Length::Fill),
|
||||||
)
|
)
|
||||||
|
.push(widget::button::suggested("asdf").on_press(Message::Ignore))
|
||||||
.spacing(cosmic::theme::spacing().space_s)
|
.spacing(cosmic::theme::spacing().space_s)
|
||||||
.width(Length::Fill)
|
.width(Length::Fill)
|
||||||
.height(Length::Shrink)
|
.height(Length::Shrink)
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ pub enum Action {
|
||||||
Task(Arc<dyn Fn() -> Task<Action> + Send + Sync>),
|
Task(Arc<dyn Fn() -> Task<Action> + Send + Sync>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "winit")]
|
||||||
pub fn surface_task<M: Send + Sync + 'static>(action: Action) -> Task<crate::Action<M>> {
|
pub fn surface_task<M: Send + Sync + 'static>(action: Action) -> Task<crate::Action<M>> {
|
||||||
crate::task::message(crate::Action::Cosmic(crate::app::Action::Surface(action)))
|
crate::task::message(crate::Action::Cosmic(crate::app::Action::Surface(action)))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue