Compare commits

..

No commits in common. "2c2f35ff0aad992f88ffd718aea1e4c971c0270a" and "1b0af636dfc2e5b3f1dcee2a14776925ef235ae4" have entirely different histories.

3 changed files with 8 additions and 10 deletions

View File

@ -55,9 +55,7 @@ impl Cache {
}
}
}
// anyhow::bail!("Tool {} was not found", tool_path)
log::error!("Tool {tool_path:?} doesnt exist!");
Ok(())
anyhow::bail!("Tool {} was not found", tool_path)
}
pub fn init(&mut self) -> Result<Receiver<Message>> {
// Check for missing tooling

View File

@ -25,7 +25,7 @@ impl CompUi for SongList {
let mut sl = SongList::get()?;
sl.playable_songs = Self::get_playable_songs(&songs)?;
if let Some((sid, _)) = songs.first() {
if sl.selected_sid.eq(&uuid::Uuid::default()) {
if sl.selected_sid == Default::default() {
sl.selected_sid = (*sid).clone();
}
}

View File

@ -99,8 +99,8 @@ impl Window for NewSongW {
ui.horizontal(|ui| {
ui.add_space(3.0);
if ui.button("Close").clicked() {
self.author = String::from("Unknown");
self.name = String::from("New Song");
self.author = String::from("New Song");
self.name = String::from("Unknown");
self.source_t = SourceType::Youtube;
self.source_url = String::default();
state.windows.toggle(&WindowId::NewSong, false);
@ -112,15 +112,15 @@ impl Window for NewSongW {
s.set_author(&self.author);
state.manifest.store_mut().get_songs_mut().insert(uuid::Uuid::new_v4(), s);
self.author = String::from("Unknown");
self.name = String::from("New Song");
self.author = String::from("New Song");
self.name = String::from("Unknown");
self.source_t = SourceType::Youtube;
self.source_url = String::default();
}
if ui.button("Cancel").clicked() {
self.author = String::from("Unknown");
self.name = String::from("New Song");
self.author = String::from("New Song");
self.name = String::from("Unknown");
self.source_t = SourceType::Youtube;
self.source_url = String::default();
state.windows.toggle(&WindowId::NewSong, false);