perf: get image dimensions from background thread
This caused the tab subscription to block the tokio executor. Instead store the image dimensions in the `Item`, which is created on a background thread.
This commit is contained in:
parent
bb15f30fe5
commit
93dd775f3c
2 changed files with 13 additions and 3 deletions
|
|
@ -199,6 +199,7 @@ fn network_scan(uri: &str, sizes: IconSizes) -> Result<Vec<tab::Item>, String> {
|
|||
metadata,
|
||||
hidden,
|
||||
location_opt: Some(location),
|
||||
image_dimensions: None,
|
||||
mime,
|
||||
icon_handle_grid,
|
||||
icon_handle_list,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue