Skip to content

Commit 119093a

Browse files
committed
improve
1 parent 3eddc27 commit 119093a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Windows/Window.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,12 @@ public function maximizable($maximizable = true): static
186186

187187
public function minimized(): static
188188
{
189-
$this->afterOpen(fn () => WindowFacade::minimize($this->id));
190-
191-
return $this;
189+
return $this->afterOpen(fn () => WindowFacade::minimize($this->id));
192190
}
193191

194192
public function maximized(): static
195193
{
196-
$this->afterOpen(fn () => WindowFacade::maximize($this->id));
197-
198-
return $this;
194+
return $this->afterOpen(fn () => WindowFacade::maximize($this->id));
199195
}
200196

201197
public function closable($closable = true): static

0 commit comments

Comments
 (0)