mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Calculator: Add menus before showing the window
Otherwise, space is reserved but menus aren't shown.
This commit is contained in:
parent
38767e262d
commit
5fa8a107df
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,6 @@ int main(int argc, char** argv)
|
|||
|
||||
auto& widget = window->set_main_widget<CalculatorWidget>();
|
||||
|
||||
window->show();
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
auto& file_menu = window->add_menu("&File");
|
||||
|
@ -70,5 +69,8 @@ int main(int argc, char** argv)
|
|||
|
||||
auto& help_menu = window->add_menu("&Help");
|
||||
help_menu.add_action(GUI::CommonActions::make_about_action("Calculator", app_icon, window));
|
||||
|
||||
window->show();
|
||||
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue