Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix missing icons: set svg_renderer when assets are updated

Thorsten Ballb30efc9e81c7
diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs
index 477bea14391..c7a6a92a17d 100644
--- a/crates/gpui/src/app.rs
+++ b/crates/gpui/src/app.rs
@@ -121,7 +121,11 @@ impl App {
/// Assign
pub fn with_assets(self, asset_source: impl AssetSource) -> Self {
- self.0.borrow_mut().asset_source = Arc::new(asset_source);
+ let mut context_lock = self.0.borrow_mut();
+ let asset_source = Arc::new(asset_source);
+ context_lock.asset_source = asset_source.clone();
+ context_lock.svg_renderer = SvgRenderer::new(asset_source);
+ drop(context_lock);
self
}