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

@ -69,7 +69,7 @@ impl<'a> SelectableText<'a> {
}
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)
@ -329,7 +329,7 @@ impl<'a, Message: Clone + 'static> Widget<Message, crate::Theme, Renderer> for S
viewport,
);
#[cfg(feature = "wayland")]
#[cfg(wayland_platform)]
if self.uses_popup_context_menu() {
use iced_core::widget::text::HasSelectableText;