mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
Merge pull request #1735 from zed-industries/rollback-dock-anchor-setting
Stops the dock anchor from being written to settings
This commit is contained in:
commit
296656570e
1 changed files with 0 additions and 7 deletions
|
@ -35,23 +35,16 @@ pub fn init(cx: &mut MutableAppContext) {
|
||||||
cx.add_action(Dock::move_dock);
|
cx.add_action(Dock::move_dock);
|
||||||
cx.add_action(
|
cx.add_action(
|
||||||
|workspace: &mut Workspace, _: &AnchorDockRight, cx: &mut ViewContext<Workspace>| {
|
|workspace: &mut Workspace, _: &AnchorDockRight, cx: &mut ViewContext<Workspace>| {
|
||||||
settings::settings_file::write_setting("default_dock_anchor", "right".to_string(), cx);
|
|
||||||
Dock::move_dock(workspace, &MoveDock(DockAnchor::Right), cx)
|
Dock::move_dock(workspace, &MoveDock(DockAnchor::Right), cx)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
cx.add_action(
|
cx.add_action(
|
||||||
|workspace: &mut Workspace, _: &AnchorDockBottom, cx: &mut ViewContext<Workspace>| {
|
|workspace: &mut Workspace, _: &AnchorDockBottom, cx: &mut ViewContext<Workspace>| {
|
||||||
settings::settings_file::write_setting("default_dock_anchor", "bottom".to_string(), cx);
|
|
||||||
Dock::move_dock(workspace, &MoveDock(DockAnchor::Bottom), cx)
|
Dock::move_dock(workspace, &MoveDock(DockAnchor::Bottom), cx)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
cx.add_action(
|
cx.add_action(
|
||||||
|workspace: &mut Workspace, _: &ExpandDock, cx: &mut ViewContext<Workspace>| {
|
|workspace: &mut Workspace, _: &ExpandDock, cx: &mut ViewContext<Workspace>| {
|
||||||
settings::settings_file::write_setting(
|
|
||||||
"default_dock_anchor",
|
|
||||||
"expanded".to_string(),
|
|
||||||
cx,
|
|
||||||
);
|
|
||||||
Dock::move_dock(workspace, &MoveDock(DockAnchor::Expanded), cx)
|
Dock::move_dock(workspace, &MoveDock(DockAnchor::Expanded), cx)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue