Skip to content

Commit 5a154d7

Browse files
committed
Refactor variable
1 parent 05d8f43 commit 5a154d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MenuBar/MenuBar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
];

0 commit comments

Comments
 (0)