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 @@ -34,6 +34,8 @@ class MenuBar
34
34
35
35
protected bool $ showOnAllWorkspaces = false ;
36
36
37
+ protected array $ webPreferences = [];
38
+
37
39
protected Client $ client ;
38
40
39
41
public function __construct ()
@@ -111,6 +113,13 @@ public function withContextMenu(Menu $menu): self
111
113
return $ this ;
112
114
}
113
115
116
+ public function webPreferences (array $ preferences ): static
117
+ {
118
+ $ this ->webPreferences = $ preferences ;
119
+
120
+ return $ this ;
121
+ }
122
+
114
123
public function toArray (): array
115
124
{
116
125
return [
@@ -132,6 +141,7 @@ public function toArray(): array
132
141
'contextMenu ' => ! is_null ($ this ->contextMenu ) ? $ this ->contextMenu ->toArray ()['submenu ' ] : null ,
133
142
'alwaysOnTop ' => $ this ->alwaysOnTop ,
134
143
'showOnAllWorkspaces ' => $ this ->showOnAllWorkspaces ,
144
+ 'webPreferences ' => $ this ->webPreferences ,
135
145
];
136
146
}
137
147
}
You can’t perform that action at this time.
0 commit comments