mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
Terminal: Remove unnecessary ellipses and capitalize name in menu
This commit is contained in:
parent
132ca7e37b
commit
2481dbcc41
Notes:
sideshowbarker
2024-07-18 21:55:18 +09:00
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/2481dbcc411 Pull-request: https://github.com/SerenityOS/serenity/pull/5532 Issue: https://github.com/SerenityOS/serenity/issues/5177
1 changed files with 2 additions and 2 deletions
|
@ -398,7 +398,7 @@ int main(int argc, char** argv)
|
|||
auto new_scrollback_size = config->read_num_entry("Terminal", "MaxHistorySize", terminal.max_history_size());
|
||||
terminal.set_max_history_size(new_scrollback_size);
|
||||
|
||||
auto open_settings_action = GUI::Action::create("Settings...", Gfx::Bitmap::load_from_file("/res/icons/16x16/gear.png"),
|
||||
auto open_settings_action = GUI::Action::create("Settings", Gfx::Bitmap::load_from_file("/res/icons/16x16/gear.png"),
|
||||
[&](const GUI::Action&) {
|
||||
if (!settings_window)
|
||||
settings_window = create_settings_window(terminal);
|
||||
|
@ -426,7 +426,7 @@ int main(int argc, char** argv)
|
|||
auto menubar = GUI::MenuBar::construct();
|
||||
|
||||
auto& app_menu = menubar->add_menu("Terminal");
|
||||
app_menu.add_action(GUI::Action::create("Open new terminal", { Mod_Ctrl | Mod_Shift, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"), [&](auto&) {
|
||||
app_menu.add_action(GUI::Action::create("Open new Terminal", { Mod_Ctrl | Mod_Shift, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"), [&](auto&) {
|
||||
pid_t child;
|
||||
const char* argv[] = { "Terminal", nullptr };
|
||||
if ((errno = posix_spawn(&child, "/bin/Terminal", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
|
|
Loading…
Reference in a new issue