Skip to content

Commit

Permalink
Implement the reload() method on the WindowManager (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
shomisha committed May 4, 2024
1 parent 806dcd9 commit 420133a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Facades/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @method static void resize($width, $height, $id = null)
* @method static void position($x, $y, $animated = false, $id = null)
* @method static void alwaysOnTop($alwaysOnTop = true, $id = null)
* @method static void reload($id = null)
*/
class Window extends Facade
{
Expand Down
7 changes: 7 additions & 0 deletions src/Windows/WindowManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,11 @@ public function maximize($id = null): void
'id' => $id ?? $this->detectId(),
]);
}

public function reload($id = null): void
{
$this->client->post('window/reload', [
'id' => $id ?? $this->detectId(),
]);
}
}

0 comments on commit 420133a

Please sign in to comment.