Allow terminal to be docked left, bottom, or right
Co-Authored-By: Joseph Lyons <joseph@zed.dev>
This commit is contained in:
parent
6a7feb4c4c
commit
ba248244ec
2 changed files with 13 additions and 5 deletions
|
@ -144,10 +144,8 @@ impl ProjectPanel {
|
|||
let project_panel = cx.add_view(|cx: &mut ViewContext<Self>| {
|
||||
// Update the dock position when the setting changes.
|
||||
let mut old_dock_position = cx.global::<Settings>().project_panel_overrides.dock;
|
||||
dbg!(old_dock_position);
|
||||
cx.observe_global::<Settings, _>(move |_, cx| {
|
||||
let new_dock_position = cx.global::<Settings>().project_panel_overrides.dock;
|
||||
dbg!(new_dock_position);
|
||||
if new_dock_position != old_dock_position {
|
||||
old_dock_position = new_dock_position;
|
||||
cx.emit(Event::DockPositionChanged);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue