assistant2: Respect panel dock position (#23465)
This PR fixes an issue where Assistant2 was not respecting the panel dock position. Release Notes: - N/A
This commit is contained in:
parent
636df12b74
commit
1e88e2924c
1 changed files with 6 additions and 2 deletions
|
@ -397,8 +397,12 @@ impl Panel for AssistantPanel {
|
|||
"AssistantPanel2"
|
||||
}
|
||||
|
||||
fn position(&self, _cx: &WindowContext) -> DockPosition {
|
||||
DockPosition::Right
|
||||
fn position(&self, cx: &WindowContext) -> DockPosition {
|
||||
match AssistantSettings::get_global(cx).dock {
|
||||
AssistantDockPosition::Left => DockPosition::Left,
|
||||
AssistantDockPosition::Bottom => DockPosition::Bottom,
|
||||
AssistantDockPosition::Right => DockPosition::Right,
|
||||
}
|
||||
}
|
||||
|
||||
fn position_is_valid(&self, _: DockPosition) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue