Make the Zed2 window movable (#3218)

This PR makes the Zed2 window movable and fixes a crash related to a
`todo!()` that wasn't necessary.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2023-11-02 16:17:31 -04:00
committed by GitHub
parent 6eeaa64e62
commit 54969877a4
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -622,7 +622,7 @@ impl StatusItemView for PanelButtons {
_active_pane_item: Option<&dyn crate::ItemHandle>,
_cx: &mut ViewContext<Self>,
) {
todo!()
// todo!(This is empty in the old `workspace::dock`)
}
}
+3 -3
View File
@@ -1043,9 +1043,9 @@ impl Workspace {
// dock.update(cx, |dock, cx| dock.add_panel(panel, cx));
// }
// pub fn status_bar(&self) -> &View<StatusBar> {
// &self.status_bar
// }
pub fn status_bar(&self) -> &View<StatusBar> {
&self.status_bar
}
pub fn app_state(&self) -> &Arc<AppState> {
&self.app_state