File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class MenuBar
20
20
21
21
protected string $ label = '' ;
22
22
23
- protected bool $ onlyShowContextWindow = false ;
23
+ protected bool $ onlyShowContextMenu = false ;
24
24
25
25
protected ?Menu $ contextMenu = null ;
26
26
@@ -51,7 +51,7 @@ public function icon(string $icon): self
51
51
52
52
public function onlyShowContextMenu (bool $ onlyContextMenu = true ): self
53
53
{
54
- $ this ->onlyShowContextWindow = $ onlyContextMenu ;
54
+ $ this ->onlyShowContextMenu = $ onlyContextMenu ;
55
55
56
56
return $ this ;
57
57
}
@@ -106,7 +106,7 @@ public function toArray(): array
106
106
'showDockIcon ' => $ this ->showDockIcon ,
107
107
'transparency ' => $ this ->transparent ,
108
108
'backgroundColor ' => $ this ->backgroundColor ,
109
- 'onlyShowContextWindow ' => $ this ->onlyShowContextWindow ,
109
+ 'onlyShowContextMenu ' => $ this ->onlyShowContextMenu ,
110
110
'contextMenu ' => ! is_null ($ this ->contextMenu ) ? $ this ->contextMenu ->toArray ()['submenu ' ] : null ,
111
111
'alwaysOnTop ' => $ this ->alwaysOnTop ,
112
112
];
You can’t perform that action at this time.
0 commit comments