Mapped home button to switch the stack to the grid containing the flowbox.

This commit is contained in:
Jordan Petridis
2017-10-16 01:46:12 +03:00
parent a8084e1bdf
commit c98c7d00df
3 changed files with 14 additions and 8 deletions
+2
View File
@@ -86,6 +86,7 @@ pub fn latest_dl(connection: &SqliteConnection, limit: u32) -> Result<()> {
Ok(())
}
// TODO: Right unit test
fn get_dl_folder(pd: &Podcast) -> Result<String> {
// It might be better to make it a hash of the title
let dl_fold = format!("{}/{}", DL_DIR.to_str().unwrap(), pd.title());
@@ -122,6 +123,7 @@ fn get_episode(connection: &SqliteConnection, ep: &mut Episode, dl_folder: &str)
}
// pub fn cache_image(pd: &Podcast) -> Option<String> {
// TODO: Right unit test
// TODO: Refactor
pub fn cache_image(title: &str, image_uri: Option<&str>) -> Option<String> {
if let Some(url) = image_uri {