port: add missing update in set_view
This commit is contained in:
parent
f2fdaa687b
commit
b6f67c8ee3
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ where V::Msg: Clone {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_view(&self, view: Option<Arc<V>>) {
|
pub fn set_view(&self, view: Option<Arc<V>>) {
|
||||||
|
self.update();
|
||||||
*self.view.write().unwrap() = view.clone();
|
*self.view.write().unwrap() = view.clone();
|
||||||
self.cast.write().unwrap().reset(view);
|
self.cast.write().unwrap().reset(view);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue