From 248995dbc08a4311f245f42177a1f6b4f576a413 Mon Sep 17 00:00:00 2001 From: WINBIGFOX Date: Mon, 17 Mar 2025 21:35:07 +0100 Subject: [PATCH 1/2] feat: add quit method to App class --- src/App.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.php b/src/App.php index 81f1a26c..32390265 100644 --- a/src/App.php +++ b/src/App.php @@ -8,6 +8,11 @@ class App { public function __construct(protected Client $client) {} + public function quit(): void + { + $this->client->post('app/quit'); + } + public function focus(): void { $this->client->post('app/focus'); From 8f4d9c6d2f78104c7b98e4578dd048a5b73c045b Mon Sep 17 00:00:00 2001 From: WINBIGFOX Date: Tue, 18 Mar 2025 09:54:26 +0100 Subject: [PATCH 2/2] Method for facade added --- src/Facades/App.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Facades/App.php b/src/Facades/App.php index 6f3d99a6..41817cf4 100644 --- a/src/Facades/App.php +++ b/src/Facades/App.php @@ -5,6 +5,7 @@ use Illuminate\Support\Facades\Facade; /** + * @method static void quit() * @method static void focus() * @method static void hide() * @method static bool isHidden()