mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-14 11:45:04 +00:00
Applications+Games: Drop ellipsis from settings action
There is no second step to complete after activating this action.
This commit is contained in:
committed by
Andreas Kling
parent
fd60c9fac7
commit
c19486172d
@@ -284,7 +284,7 @@ void BrowserWindow::build_menus()
|
||||
}
|
||||
|
||||
settings_menu.add_separator();
|
||||
auto open_settings_action = GUI::Action::create("&Settings...", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/settings.png").release_value_but_fixme_should_propagate_errors(),
|
||||
auto open_settings_action = GUI::Action::create("&Settings", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/settings.png").release_value_but_fixme_should_propagate_errors(),
|
||||
[](auto&) {
|
||||
Core::Process::spawn("/bin/BrowserSettings");
|
||||
});
|
||||
|
||||
@@ -192,7 +192,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
})));
|
||||
|
||||
TRY(game_menu->try_add_separator());
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings...", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/settings.png")), [&](auto&) {
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings", TRY(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/settings.png")), [&](auto&) {
|
||||
change_settings();
|
||||
})));
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
game.setup(player_name);
|
||||
})));
|
||||
TRY(game_menu->try_add_separator());
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings...", [&](auto&) {
|
||||
TRY(game_menu->try_add_action(GUI::Action::create("&Settings", [&](auto&) {
|
||||
change_settings();
|
||||
})));
|
||||
TRY(game_menu->try_add_separator());
|
||||
|
||||
Reference in New Issue
Block a user