Fix missing icons: set svg_renderer when assets are updated
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
87046eff3c
commit
b30efc9e81
1 changed files with 5 additions and 1 deletions
|
@ -121,7 +121,11 @@ impl App {
|
||||||
|
|
||||||
/// Assign
|
/// Assign
|
||||||
pub fn with_assets(self, asset_source: impl AssetSource) -> Self {
|
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
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue