mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
UI for image download refactor and fixes (#98)
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
Reference in New Issue
Block a user