mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: refactor pt.17: 44 errors
This commit is contained in:
parent
78c2004282
commit
c2b290b3c5
8 changed files with 104 additions and 112 deletions
|
|
@ -78,19 +78,6 @@ impl<E: Engine> PhrasePoolView<E> {
|
|||
self.model.phrases.insert(self.phrase + 1, Arc::new(RwLock::new(phrase)));
|
||||
self.phrase += 1;
|
||||
}
|
||||
pub fn begin_rename (&mut self) {
|
||||
self.mode = Some(PhrasePoolMode::Rename(
|
||||
self.phrase,
|
||||
self.model.phrases[self.phrase].read().unwrap().name.clone()
|
||||
));
|
||||
}
|
||||
pub fn begin_length (&mut self) {
|
||||
self.mode = Some(PhrasePoolMode::Length(
|
||||
self.phrase,
|
||||
self.model.phrases[self.phrase].read().unwrap().length,
|
||||
PhraseLengthFocus::Bar
|
||||
));
|
||||
}
|
||||
pub fn move_up (&mut self) {
|
||||
if self.phrase > 1 {
|
||||
self.model.phrases.swap(self.phrase - 1, self.phrase);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue