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:
parent
6eeaa64e62
commit
54969877a4
3 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -242,7 +242,7 @@ pub fn build_window_options(
|
|||
focus: false,
|
||||
show: false,
|
||||
kind: WindowKind::Normal,
|
||||
is_movable: false,
|
||||
is_movable: true,
|
||||
display_id: display.map(|display| display.id()),
|
||||
}
|
||||
}
|
||||
|
@ -317,7 +317,7 @@ pub fn initialize_workspace(
|
|||
// feedback::deploy_feedback_button::DeployFeedbackButton::new(workspace)
|
||||
// });
|
||||
// let cursor_position = cx.add_view(|_| editor::items::CursorPosition::new());
|
||||
// workspace.status_bar().update(cx, |status_bar, cx| {
|
||||
workspace.status_bar().update(cx, |status_bar, cx| {
|
||||
// status_bar.add_left_item(diagnostic_summary, cx);
|
||||
// status_bar.add_left_item(activity_indicator, cx);
|
||||
|
||||
|
@ -326,7 +326,7 @@ pub fn initialize_workspace(
|
|||
// status_bar.add_right_item(active_buffer_language, cx);
|
||||
// status_bar.add_right_item(vim_mode_indicator, cx);
|
||||
// status_bar.add_right_item(cursor_position, cx);
|
||||
// });
|
||||
});
|
||||
|
||||
// auto_update::notify_of_any_new_update(cx.weak_handle(), cx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue