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:
@@ -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`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user