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
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')
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments