Save manifest when adding new song
This commit is contained in:
parent
2c2f35ff0a
commit
d6b9d566d2
|
|
@ -111,7 +111,7 @@ impl Window for NewSongW {
|
|||
s.set_name(&self.name);
|
||||
s.set_author(&self.author);
|
||||
state.manifest.store_mut().get_songs_mut().insert(uuid::Uuid::new_v4(), s);
|
||||
|
||||
let _ = state.manifest.save();
|
||||
self.author = String::from("Unknown");
|
||||
self.name = String::from("New Song");
|
||||
self.source_t = SourceType::Youtube;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user