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
2020
2121 protected string $ label = '' ;
2222
23- protected bool $ onlyShowContextWindow = false ;
23+ protected bool $ onlyShowContextMenu = false ;
2424
2525 protected ?Menu $ contextMenu = null ;
2626
@@ -51,7 +51,7 @@ public function icon(string $icon): self
5151
5252 public function onlyShowContextMenu (bool $ onlyContextMenu = true ): self
5353 {
54- $ this ->onlyShowContextWindow = $ onlyContextMenu ;
54+ $ this ->onlyShowContextMenu = $ onlyContextMenu ;
5555
5656 return $ this ;
5757 }
@@ -106,7 +106,7 @@ public function toArray(): array
106106 'showDockIcon ' => $ this ->showDockIcon ,
107107 'transparency ' => $ this ->transparent ,
108108 'backgroundColor ' => $ this ->backgroundColor ,
109- 'onlyShowContextWindow ' => $ this ->onlyShowContextWindow ,
109+ 'onlyShowContextMenu ' => $ this ->onlyShowContextMenu ,
110110 'contextMenu ' => ! is_null ($ this ->contextMenu ) ? $ this ->contextMenu ->toArray ()['submenu ' ] : null ,
111111 'alwaysOnTop ' => $ this ->alwaysOnTop ,
112112 ];
You can’t perform that action at this time.
0 commit comments