File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class NativeAppServiceProvider
17
17
public function boot(): void
18
18
{
19
19
Menu::new()
20
- ->submenu('App', Menu::new()-> appMenu() )
20
+ ->appMenu()
21
21
->submenu('About', Menu::new()
22
22
->link('https://beyondco.de', 'Beyond Code')
23
23
->link('https://simonhamp.me', 'Simon Hamp')
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ enum RolesEnum: string
7
7
case APP_MENU = 'appMenu ' ;
8
8
case QUIT = 'quit ' ;
9
9
case TOGGLE_FULL_SCREEN = 'togglefullscreen ' ;
10
+ case TOGGLE_DEV_TOOLS = 'toggleDevTools ' ;
10
11
}
Original file line number Diff line number Diff line change @@ -88,6 +88,11 @@ public function toggleFullscreen(): static
88
88
return $ this ->add (new Role (RolesEnum::TOGGLE_FULL_SCREEN ));
89
89
}
90
90
91
+ public function toggleDevTools (): static
92
+ {
93
+ return $ this ->add (new Role (RolesEnum::TOGGLE_DEV_TOOLS ));
94
+ }
95
+
91
96
public function add (MenuItem $ item ): self
92
97
{
93
98
$ this ->items [] = $ item ;
You can’t perform that action at this time.
0 commit comments