Skip to content

Commit

Permalink
Do not close group if it's the only group available
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgoodwin97 authored and mathuo committed Dec 10, 2024
1 parent 1b92186 commit 615886e
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 @@ -1793,6 +1793,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 615886e

Please sign in to comment.