File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class MenuBar
30
30
31
31
protected bool $ alwaysOnTop = false ;
32
32
33
+ protected ?string $ event = null ;
34
+
33
35
protected bool $ showDockIcon = false ;
34
36
35
37
protected Client $ client ;
@@ -95,6 +97,13 @@ public function alwaysOnTop($alwaysOnTop = true): self
95
97
return $ this ;
96
98
}
97
99
100
+ public function event (string $ event ): self
101
+ {
102
+ $ this ->event = $ event ;
103
+
104
+ return $ this ;
105
+ }
106
+
98
107
public function withContextMenu (Menu $ menu ): self
99
108
{
100
109
$ this ->contextMenu = $ menu ;
@@ -122,6 +131,7 @@ public function toArray(): array
122
131
'onlyShowContextMenu ' => $ this ->onlyShowContextMenu ,
123
132
'contextMenu ' => ! is_null ($ this ->contextMenu ) ? $ this ->contextMenu ->toArray ()['submenu ' ] : null ,
124
133
'alwaysOnTop ' => $ this ->alwaysOnTop ,
134
+ 'event ' => $ this ->event ,
125
135
];
126
136
}
127
137
}
You can’t perform that action at this time.
0 commit comments