update dock
This commit is contained in:
@@ -19,9 +19,7 @@ pub struct Workspace {
|
||||
|
||||
impl Workspace {
|
||||
pub fn new(window: &mut Window, cx: &mut Context<Self>) -> Self {
|
||||
let dock = cx.new(|cx| {
|
||||
DockArea::new("dock", Some(1), window, cx).panel_style(dock::PanelStyle::TabBar)
|
||||
});
|
||||
let dock = cx.new(|cx| DockArea::new("dock", Some(1), window, cx));
|
||||
let weak_dock = dock.downgrade();
|
||||
|
||||
let sidebar = cx.new(|cx| SidebarPanel::new(weak_dock.clone(), cx));
|
||||
|
||||
Reference in New Issue
Block a user