Enable reload of images in image viewer (#20374)
Closes #11529 Release Notes: - Fixed an issue where the image preview would not update when the underlying file changed --------- Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
parent
f3320998a8
commit
0dbda71423
10 changed files with 840 additions and 109 deletions
|
@ -92,6 +92,12 @@ impl From<Arc<RenderImage>> for ImageSource {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<Arc<Image>> for ImageSource {
|
||||
fn from(value: Arc<Image>) -> Self {
|
||||
Self::Image(value)
|
||||
}
|
||||
}
|
||||
|
||||
/// An image element.
|
||||
pub struct Img {
|
||||
interactivity: Interactivity,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue