mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
reenable transport roll in arranger
This commit is contained in:
parent
323a8aeb5f
commit
0da54db5e0
2 changed files with 31 additions and 6 deletions
|
|
@ -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 => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue