Skip to content

Commit 840f88d

Browse files
committed
Add closable
1 parent e4e6656 commit 840f88d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Windows/Window.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,17 @@ public function maximized(): static
219219
return $this->afterOpen(fn () => WindowFacade::maximize($this->id));
220220
}
221221

222-
public function closable($closable = true): static
222+
public function closable(bool $closable = true): static
223223
{
224224
$this->closable = $closable;
225225

226+
if (! $this instanceof PendingOpenWindow) {
227+
$this->client->post('window/closable', [
228+
'id' => $this->id,
229+
'closable' => $closable,
230+
]);
231+
}
232+
226233
return $this;
227234
}
228235

0 commit comments

Comments
 (0)