mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
KeyboardMapper: Add menus before showing the window
Otherwise, space is reserved but menus aren't shown.
This commit is contained in:
parent
5fa8a107df
commit
6e42cb8c55
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,6 @@ int main(int argc, char** argv)
|
|||
window->set_main_widget<KeyboardMapperWidget>();
|
||||
window->resize(775, 315);
|
||||
window->set_resizable(false);
|
||||
window->show();
|
||||
|
||||
auto keyboard_mapper_widget = (KeyboardMapperWidget*)window->main_widget();
|
||||
if (path != nullptr) {
|
||||
|
@ -92,5 +91,7 @@ int main(int argc, char** argv)
|
|||
auto& help_menu = window->add_menu("&Help");
|
||||
help_menu.add_action(GUI::CommonActions::make_about_action("Keyboard Mapper", app_icon, window));
|
||||
|
||||
window->show();
|
||||
|
||||
return app->exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue