UI for image download refactor and fixes (#98)

This commit is contained in:
Philip Kristoffersen
2022-04-24 21:44:27 +02:00
committed by GitHub
parent 5721c8d47b
commit d2ccef8b9b
7 changed files with 404 additions and 320 deletions
+5 -5
View File
@@ -248,9 +248,12 @@ async fn get_images_for_ids(
image_search_result.map_err(|e| format!("Image search failed {:?}", e))
}
const BIG_PICTURE_DIMS : [GridDimentions;2] = [GridDimentions::D920x430, GridDimentions::D460x215];
const BIG_PICTURE_DIMS: [GridDimentions; 2] = [GridDimentions::D920x430, GridDimentions::D460x215];
pub fn get_query_type(download_animated: bool, image_type: &ImageType) -> steamgriddb_api::QueryType {
pub fn get_query_type(
download_animated: bool,
image_type: &ImageType,
) -> steamgriddb_api::QueryType {
let anymation_type = if download_animated {
Some(&[steamgriddb_api::query_parameters::AnimtionType::Animated][..])
} else {
@@ -366,6 +369,3 @@ pub struct ToDownload {
pub app_name: String,
pub image_type: ImageType,
}
unsafe impl Send for ToDownload {
}