KeyboardMapper: Add menus before showing the window

Otherwise, space is reserved but menus aren't shown.
This commit is contained in:
LuK1337 2021-07-28 12:32:41 +02:00 committed by Gunnar Beutner
parent 5fa8a107df
commit 6e42cb8c55

View file

@ -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();
}