Skip to content

Commit

Permalink
feat: Allow to hide the KWindow menu when multiple widgets are regist…
Browse files Browse the repository at this point in the history
…ered (close #967)
  • Loading branch information
cnouguier committed Oct 4, 2024
1 parent f2329d2 commit 53d56c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/client/components/layout/KWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<q-resize-observer @resize="onHeaderResized" />
<!-- window menu -->
<KPanel
v-if="currentWindow.controls.menu"
:id="`${placement}-window-menu`"
:content="menu"
@touchstart.passive.stop
Expand Down
2 changes: 1 addition & 1 deletion core/client/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DefaultZIndex = {
const layoutPath = 'layout'
const contentDefaults = { content: undefined, filter: {}, mode: undefined, visible: false }
const paneDefaults = { opener: false, size: [0, 0], zIndex: DefaultZIndex.panes }
const windowsDefaultControls = { pin: true, unpin: true, maximize: true, restore: true, close: true, resize: true }
const windowsDefaultControls = { menu: true, pin: true, unpin: true, maximize: true, restore: true, close: true, resize: true }
const windowDefaults = { state: undefined, position: undefined, size: undefined, current: undefined, controls: windowsDefaultControls, zIndex: 980 }
const hWindowDefaultSizePolicy = {
minSize: [300, 200],
Expand Down

0 comments on commit 53d56c6

Please sign in to comment.