mirror of
https://github.com/JockeTF/fimfareader.git
synced 2024-11-23 22:07:59 +01:00
Clear view model during store detach
This commit is contained in:
parent
9db565d540
commit
9dc01943e1
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ impl StoryView {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn detach(mut self) -> TreeView {
|
pub fn detach(mut self) -> TreeView {
|
||||||
|
self.view.set_model(None::<&ListStore>);
|
||||||
replace(&mut self.view, TreeView::new())
|
replace(&mut self.view, TreeView::new())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue