mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-26 19:32:06 -05: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->set_main_widget<KeyboardMapperWidget>();
|
||||||
window->resize(775, 315);
|
window->resize(775, 315);
|
||||||
window->set_resizable(false);
|
window->set_resizable(false);
|
||||||
window->show();
|
|
||||||
|
|
||||||
auto keyboard_mapper_widget = (KeyboardMapperWidget*)window->main_widget();
|
auto keyboard_mapper_widget = (KeyboardMapperWidget*)window->main_widget();
|
||||||
if (path != nullptr) {
|
if (path != nullptr) {
|
||||||
|
@ -92,5 +91,7 @@ int main(int argc, char** argv)
|
||||||
auto& help_menu = window->add_menu("&Help");
|
auto& help_menu = window->add_menu("&Help");
|
||||||
help_menu.add_action(GUI::CommonActions::make_about_action("Keyboard Mapper", app_icon, window));
|
help_menu.add_action(GUI::CommonActions::make_about_action("Keyboard Mapper", app_icon, window));
|
||||||
|
|
||||||
|
window->show();
|
||||||
|
|
||||||
return app->exec();
|
return app->exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue