mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-13 05:42:59 +00:00
Fix missing icons: set svg_renderer when assets are updated (#4124)
This fixes the missing icons in nightly. Regression was introduced in https://github.com/zed-industries/zed/pull/4122. Release Notes: - N/A
This commit is contained in:
commit
aef45472e1
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…
Reference in a new issue