Skip to content

Commit 0ce4020

Browse files
committed
wip
1 parent ec45860 commit 0ce4020

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

resources/stubs/NativeAppServiceProvider.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class NativeAppServiceProvider
1717
public function boot(): void
1818
{
1919
Menu::new()
20-
->submenu('App', Menu::new()->appMenu())
20+
->appMenu()
2121
->submenu('About', Menu::new()
2222
->link('https://beyondco.de', 'Beyond Code')
2323
->link('https://simonhamp.me', 'Simon Hamp')

src/Enums/RolesEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ enum RolesEnum: string
77
case APP_MENU = 'appMenu';
88
case QUIT = 'quit';
99
case TOGGLE_FULL_SCREEN = 'togglefullscreen';
10+
case TOGGLE_DEV_TOOLS = 'toggleDevTools';
1011
}

src/Menu/Menu.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public function toggleFullscreen(): static
8888
return $this->add(new Role(RolesEnum::TOGGLE_FULL_SCREEN));
8989
}
9090

91+
public function toggleDevTools(): static
92+
{
93+
return $this->add(new Role(RolesEnum::TOGGLE_DEV_TOOLS));
94+
}
95+
9196
public function add(MenuItem $item): self
9297
{
9398
$this->items[] = $item;

0 commit comments

Comments
 (0)