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:
Michael Aaron Murphy 2026-04-14 16:23:10 +02:00
parent bb15f30fe5
commit 93dd775f3c
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 13 additions and 3 deletions

View file

@ -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,