1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

Everywhere: Rename app_menu to file_menu or game_menu

This commit is contained in:
Andreas Kling 2021-05-01 10:45:39 +02:00
parent b119fa5a0a
commit 4b0098e52f
34 changed files with 140 additions and 142 deletions

View file

@ -49,14 +49,14 @@ int main(int argc, char** argv)
auto menubar = GUI::Menubar::construct();
auto& app_menu = menubar->add_menu("Game");
app_menu.add_action(GUI::Action::create_checkable("Pause", { {}, Key_P }, [&](auto& action) {
auto& game_menu = menubar->add_menu("&Game");
game_menu.add_action(GUI::Action::create_checkable("&Pause", { {}, Key_P }, [&](auto& action) {
game.set_paused(action.is_checked());
}));
app_menu.add_separator();
game_menu.add_separator();
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
game_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the()->quit();
}));