From 745a8e4c871b9525fa34f8e43b48783f63c84773 Mon Sep 17 00:00:00 2001 From: WINBIGFOX Date: Sat, 26 Apr 2025 14:44:56 +0200 Subject: [PATCH] Add relaunch functionality to App and its facade Introduced a new `relaunch` method in the App class to trigger the app's relaunch behavior via the client. Updated the App facade to include the new `relaunch` method for consistent accessibility. --- src/App.php | 5 +++++ src/Facades/App.php | 1 + 2 files changed, 6 insertions(+) diff --git a/src/App.php b/src/App.php index 039579e9..f7fa1c3a 100644 --- a/src/App.php +++ b/src/App.php @@ -14,6 +14,11 @@ public function quit(): void $this->client->post('app/quit'); } + public function relaunch(): void + { + $this->client->post('app/relaunch'); + } + public function focus(): void { $this->client->post('app/focus'); diff --git a/src/Facades/App.php b/src/Facades/App.php index 69abb2e5..14e42f87 100644 --- a/src/Facades/App.php +++ b/src/Facades/App.php @@ -6,6 +6,7 @@ /** * @method static void quit() + * @method static void relaunch() * @method static void focus() * @method static void hide() * @method static bool isHidden()