mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
shorter default name
This commit is contained in:
parent
cc578b0b52
commit
dcaffa0883
1 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ impl<E: Engine> PhrasePool<E> {
|
|||
}
|
||||
pub fn append_new (&mut self, name: Option<&str>, color: Option<Color>) {
|
||||
let mut phrase = Phrase::default();
|
||||
phrase.name = String::from(name.unwrap_or("(no name)"));
|
||||
phrase.name = String::from(name.unwrap_or("(new)"));
|
||||
phrase.color = color.unwrap_or_else(random_color);
|
||||
phrase.length = 4 * PPQ;
|
||||
phrase.notes = vec![Vec::with_capacity(16);phrase.length];
|
||||
|
|
@ -179,7 +179,7 @@ impl<E: Engine> PhrasePool<E> {
|
|||
}
|
||||
pub fn insert_new (&mut self, name: Option<&str>, color: Option<Color>) {
|
||||
let mut phrase = Phrase::default();
|
||||
phrase.name = String::from(name.unwrap_or("(no name)"));
|
||||
phrase.name = String::from(name.unwrap_or("(new)"));
|
||||
phrase.color = color.unwrap_or_else(random_color);
|
||||
phrase.length = 4 * PPQ;
|
||||
phrase.notes = vec![Vec::with_capacity(16);phrase.length];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue