summaryrefslogtreecommitdiff
path: root/Userland/Applications/Terminal
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-25 21:41:39 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-25 22:14:09 +0100
commit78b12e1521a5ab4e0a212c0e125b76a813be6f64 (patch)
tree63b47fca86bfba4ef53d62f301856e63f5bb2f28 /Userland/Applications/Terminal
parentfcc8e3484f9c2312d80063fe8d6251830609385a (diff)
downloadserenity-78b12e1521a5ab4e0a212c0e125b76a813be6f64.zip
Userland: Turn all application menus into window menus :^)
Diffstat (limited to 'Userland/Applications/Terminal')
-rw-r--r--Userland/Applications/Terminal/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp
index d69ac2e3aa..89af1c5b0e 100644
--- a/Userland/Applications/Terminal/main.cpp
+++ b/Userland/Applications/Terminal/main.cpp
@@ -428,7 +428,7 @@ int main(int argc, char** argv)
auto menubar = GUI::MenuBar::construct();
- auto& app_menu = menubar->add_menu("Terminal");
+ auto& app_menu = menubar->add_menu("File");
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 };
@@ -473,7 +473,8 @@ int main(int argc, char** argv)
}));
help_menu.add_action(GUI::CommonActions::make_about_action("Terminal", app_icon, window));
- app->set_menubar(move(menubar));
+ window->set_menubar(menubar);
+ window->set_menubar(menubar);
if (unveil("/res", "r") < 0) {
perror("unveil");