fix: feature gate

This commit is contained in:
Ashley Wulber 2026-04-29 11:51:49 -04:00 committed by Ashley Wulber
parent 5fca59df70
commit 408d37169a
2 changed files with 2 additions and 0 deletions

View file

@ -282,6 +282,7 @@ impl cosmic::Application for App {
.progress(1.0)
.width(Length::Fill),
)
.push(widget::button::suggested("asdf").on_press(Message::Ignore))
.spacing(cosmic::theme::spacing().space_s)
.width(Length::Fill)
.height(Length::Shrink)

View file

@ -80,6 +80,7 @@ pub enum Action {
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>> {
crate::task::message(crate::Action::Cosmic(crate::app::Action::Surface(action)))
}