Skip to content

Commit 67f01b3

Browse files
committed
feat: add openAtLogin method to manage app startup behavior
1 parent 0102a92 commit 67f01b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/App.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,17 @@ public function clearRecentDocuments(): void
5757
{
5858
$this->client->delete('app/recent-documents');
5959
}
60+
61+
public function openAtLogin(?bool $open = null): bool
62+
{
63+
if ($open === null) {
64+
return (bool) $this->client->get('app/open-at-login')->json('open');
65+
}
66+
67+
$this->client->post('app/open-at-login', [
68+
'open' => $open,
69+
]);
70+
71+
return $open;
72+
}
6073
}

0 commit comments

Comments
 (0)