reenable transport roll in arranger

This commit is contained in:
🪞👃🪞 2024-10-06 02:37:50 +03:00
parent 323a8aeb5f
commit 0da54db5e0
2 changed files with 31 additions and 6 deletions

View file

@ -54,6 +54,15 @@ impl<F: Focusable<E>, E: Engine> Focusable<E> for Option<F>
}
}
impl<F: Focusable<E>, E: Engine> Focusable<E> for Arc<RwLock<F>> {
fn is_focused (&self) -> bool {
self.read().unwrap().is_focused()
}
fn set_focused (&mut self, focused: bool) {
self.write().unwrap().set_focused(focused)
}
}
/// Implement the [Focus] trait for a component.
#[macro_export] macro_rules! focus {
($struct:ident ($focus:ident) : $count:expr => [