mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	LibGUI+Userland: Make Window::*add_menu take name using new string
This commit is contained in:
		
							parent
							
								
									60a338758c
								
							
						
					
					
						commit
						969543a847
					
				
					 52 changed files with 162 additions and 162 deletions
				
			
		|  | @ -89,10 +89,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     window->resize(685, 500); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
| 
 | ||||
|     auto& file_menu = window->add_menu("&File"); | ||||
|     auto& file_menu = window->add_menu("&File"_short_string); | ||||
|     file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })); | ||||
| 
 | ||||
|     auto& help_menu = window->add_menu("&Help"); | ||||
|     auto& help_menu = window->add_menu("&Help"_short_string); | ||||
|     help_menu.add_action(GUI::CommonActions::make_command_palette_action(window)); | ||||
|     help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) { | ||||
|         Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/Inspector.md"), "/bin/Help"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Karol Kosek
						Karol Kosek