Skip to content

Commit

Permalink
Merge pull request #779 from danielgoodwin97/master
Browse files Browse the repository at this point in the history
Do not close groups if they're the only group
  • Loading branch information
mathuo authored Dec 10, 2024
2 parents 57d0119 + adfe9bc commit 3b427ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dockview-core/src/dockview/dockviewComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,10 @@ export class DockviewComponent
}
| undefined
): DockviewGroupPanel {
if (this.groups.length <= 1) {
return false;
}

const panels = [...group.panels]; // reassign since group panels will mutate

if (!options?.skipDispose) {
Expand Down

0 comments on commit 3b427ac

Please sign in to comment.