Refactorings
This commit is contained in:
parent
eb04160d2d
commit
ceb20dea96
5 changed files with 119 additions and 64 deletions
|
@ -831,7 +831,9 @@ impl Workspace {
|
|||
DockPosition::Right => &self.right_dock,
|
||||
};
|
||||
|
||||
dock.update(cx, |dock, cx| dock.add_panel(panel, cx));
|
||||
dock.update(cx, |dock, cx| {
|
||||
dock.add_panel(panel, self.weak_self.clone(), cx)
|
||||
});
|
||||
}
|
||||
|
||||
pub fn status_bar(&self) -> &View<StatusBar> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue