Skip to content

Commit dea70a1

Browse files
authored
fix: prevent hiding settings entry in DockContextMenu (#201)
1 parent 944a829 commit dea70a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/client/webcomponents/components/DockContextMenu.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ function refreshDock(context: DocksContext, entry: DevToolsDockEntry) {
4848
}
4949

5050
function canHide(context: DocksContext, entry: DevToolsDockEntry) {
51+
if (entry.id === '~settings')
52+
return false
5153
return context.docks.entries.some(item => item.id === entry.id)
5254
}
5355

0 commit comments

Comments
 (0)