hammond-gtk::manager: Switch the add function to return a Result<(), Error>.

This commit is contained in:
Jordan Petridis
2018-02-06 22:03:17 +02:00
parent ab519a54d3
commit 1c84f0d721
2 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ fn on_download_clicked(ep: &EpisodeWidgetQuery, sender: Sender<Action>) -> Resul
let download_fold = get_download_folder(&pd.title().to_owned())?;
// Start a new download.
manager::add(ep.rowid(), &download_fold, sender.clone());
manager::add(ep.rowid(), &download_fold, sender.clone())?;
// Update Views
sender.send(Action::RefreshEpisodesView)?;