chore: gate accessibility-only winit state
This commit is contained in:
parent
0e56697239
commit
5962a0b421
2 changed files with 4 additions and 1 deletions
|
|
@ -188,8 +188,9 @@ where
|
|||
sender: mpsc::UnboundedSender<Event<Message>>,
|
||||
receiver: mpsc::UnboundedReceiver<Control>,
|
||||
error: Option<Error>,
|
||||
#[cfg(feature = "a11y")]
|
||||
control_sender: mpsc::UnboundedSender<Control>,
|
||||
|
||||
|
||||
#[cfg(feature = "a11y")]
|
||||
adapters: std::collections::HashMap<window::Id, (u64, iced_accessibility::accesskit_winit::Adapter)>,
|
||||
|
||||
|
|
@ -208,6 +209,7 @@ where
|
|||
id: settings.id,
|
||||
sender: event_sender,
|
||||
receiver: control_receiver,
|
||||
#[cfg(feature = "a11y")]
|
||||
control_sender: control_sender.clone(),
|
||||
error: None,
|
||||
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ where
|
|||
self.ready = ready;
|
||||
}
|
||||
|
||||
#[cfg(feature = "a11y")]
|
||||
pub(crate) fn set_a11y_ready(&mut self, ready: bool) {
|
||||
self.a11y_ready = ready;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue