mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
Terminal: Remove unnecessary ellipses and capitalize name in menu
This commit is contained in:
parent
132ca7e37b
commit
2481dbcc41
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());
|
auto new_scrollback_size = config->read_num_entry("Terminal", "MaxHistorySize", terminal.max_history_size());
|
||||||
terminal.set_max_history_size(new_scrollback_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&) {
|
[&](const GUI::Action&) {
|
||||||
if (!settings_window)
|
if (!settings_window)
|
||||||
settings_window = create_settings_window(terminal);
|
settings_window = create_settings_window(terminal);
|
||||||
|
@ -426,7 +426,7 @@ int main(int argc, char** argv)
|
||||||
auto menubar = GUI::MenuBar::construct();
|
auto menubar = GUI::MenuBar::construct();
|
||||||
|
|
||||||
auto& app_menu = menubar->add_menu("Terminal");
|
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;
|
pid_t child;
|
||||||
const char* argv[] = { "Terminal", nullptr };
|
const char* argv[] = { "Terminal", nullptr };
|
||||||
if ((errno = posix_spawn(&child, "/bin/Terminal", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
if ((errno = posix_spawn(&child, "/bin/Terminal", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue