chore: feature gates

This commit is contained in:
Ashley Wulber 2026-07-20 11:25:44 -04:00 • committed by Michael Murphy
parent 654ae0bf5d
commit 03a66751ea
5 changed files with 27 additions and 27 deletions

View file

@ -130,7 +130,7 @@ impl<'a, Message: Clone + 'static> TextEditor<'a, Message> {
}
fn uses_popup_context_menu(&self) -> bool {
#[cfg(all(feature = "wayland", feature = "winit"))]
#[cfg(all(wayland_platform, feature = "winit"))]
if matches!(
crate::app::cosmic::WINDOWING_SYSTEM.get(),
Some(crate::app::cosmic::WindowingSystem::Wayland)
@ -275,7 +275,7 @@ impl<'a, Message: Clone + 'static> Widget<Message, crate::Theme, crate::Renderer
crate::widget::text_input::notify_focus_change();
}
#[cfg(feature = "wayland")]
#[cfg(wayland_platform)]
if self.uses_popup_context_menu() {
if self
.inner