mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
pub methods to fix test
This commit is contained in:
parent
997c8e2d6e
commit
93a64833e9
1 changed files with 3 additions and 3 deletions
|
|
@ -66,15 +66,15 @@ mod model_select; pub use self::model_select::*;
|
|||
}
|
||||
|
||||
impl Tek {
|
||||
fn clip (&self) -> Option<Arc<RwLock<MidiClip>>> {
|
||||
pub(crate) fn clip (&self) -> Option<Arc<RwLock<MidiClip>>> {
|
||||
self.scene()?.clips.get(self.selected().track()?)?.clone()
|
||||
}
|
||||
fn toggle_loop (&mut self) {
|
||||
pub(crate) fn toggle_loop (&mut self) {
|
||||
if let Some(clip) = self.clip() {
|
||||
clip.write().unwrap().toggle_loop()
|
||||
}
|
||||
}
|
||||
fn activate (&mut self) -> Usually<()> {
|
||||
pub(crate) fn activate (&mut self) -> Usually<()> {
|
||||
let selected = self.selected().clone();
|
||||
match selected {
|
||||
Selection::Scene(s) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue