Compare commits
2 Commits
1b0af636df
...
2c2f35ff0a
| Author | SHA1 | Date | |
|---|---|---|---|
| 2c2f35ff0a | |||
| 2aa0e5a1e8 |
|
|
@ -55,7 +55,9 @@ impl Cache {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
anyhow::bail!("Tool {} was not found", tool_path)
|
// anyhow::bail!("Tool {} was not found", tool_path)
|
||||||
|
log::error!("Tool {tool_path:?} doesnt exist!");
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
pub fn init(&mut self) -> Result<Receiver<Message>> {
|
pub fn init(&mut self) -> Result<Receiver<Message>> {
|
||||||
// Check for missing tooling
|
// Check for missing tooling
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ impl CompUi for SongList {
|
||||||
let mut sl = SongList::get()?;
|
let mut sl = SongList::get()?;
|
||||||
sl.playable_songs = Self::get_playable_songs(&songs)?;
|
sl.playable_songs = Self::get_playable_songs(&songs)?;
|
||||||
if let Some((sid, _)) = songs.first() {
|
if let Some((sid, _)) = songs.first() {
|
||||||
if sl.selected_sid == Default::default() {
|
if sl.selected_sid.eq(&uuid::Uuid::default()) {
|
||||||
sl.selected_sid = (*sid).clone();
|
sl.selected_sid = (*sid).clone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,8 +99,8 @@ impl Window for NewSongW {
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.add_space(3.0);
|
ui.add_space(3.0);
|
||||||
if ui.button("Close").clicked() {
|
if ui.button("Close").clicked() {
|
||||||
self.author = String::from("New Song");
|
self.author = String::from("Unknown");
|
||||||
self.name = String::from("Unknown");
|
self.name = String::from("New Song");
|
||||||
self.source_t = SourceType::Youtube;
|
self.source_t = SourceType::Youtube;
|
||||||
self.source_url = String::default();
|
self.source_url = String::default();
|
||||||
state.windows.toggle(&WindowId::NewSong, false);
|
state.windows.toggle(&WindowId::NewSong, false);
|
||||||
|
|
@ -112,15 +112,15 @@ impl Window for NewSongW {
|
||||||
s.set_author(&self.author);
|
s.set_author(&self.author);
|
||||||
state.manifest.store_mut().get_songs_mut().insert(uuid::Uuid::new_v4(), s);
|
state.manifest.store_mut().get_songs_mut().insert(uuid::Uuid::new_v4(), s);
|
||||||
|
|
||||||
self.author = String::from("New Song");
|
self.author = String::from("Unknown");
|
||||||
self.name = String::from("Unknown");
|
self.name = String::from("New Song");
|
||||||
self.source_t = SourceType::Youtube;
|
self.source_t = SourceType::Youtube;
|
||||||
self.source_url = String::default();
|
self.source_url = String::default();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ui.button("Cancel").clicked() {
|
if ui.button("Cancel").clicked() {
|
||||||
self.author = String::from("New Song");
|
self.author = String::from("Unknown");
|
||||||
self.name = String::from("Unknown");
|
self.name = String::from("New Song");
|
||||||
self.source_t = SourceType::Youtube;
|
self.source_t = SourceType::Youtube;
|
||||||
self.source_url = String::default();
|
self.source_url = String::default();
|
||||||
state.windows.toggle(&WindowId::NewSong, false);
|
state.windows.toggle(&WindowId::NewSong, false);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user