mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
Userland: Turn all application menus into window menus :^)
This commit is contained in:
parent
fcc8e3484f
commit
78b12e1521
47 changed files with 100 additions and 110 deletions
|
@ -888,7 +888,7 @@ void HackStudioWidget::create_action_tab(GUI::Widget& parent)
|
|||
|
||||
void HackStudioWidget::create_app_menubar(GUI::MenuBar& menubar)
|
||||
{
|
||||
auto& app_menu = menubar.add_menu("Hack Studio");
|
||||
auto& app_menu = menubar.add_menu("File");
|
||||
app_menu.add_action(*m_new_project_action);
|
||||
app_menu.add_action(*m_open_action);
|
||||
app_menu.add_action(*m_save_action);
|
||||
|
|
|
@ -99,7 +99,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto menubar = GUI::MenuBar::construct();
|
||||
s_hack_studio_widget->initialize_menubar(menubar);
|
||||
app->set_menubar(menubar);
|
||||
s_window->set_menubar(menubar);
|
||||
|
||||
s_window->show();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue