summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2021-07-28 12:32:14 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-31 08:08:31 +0200
commit38767e262d2dad5a2abe6180cf6229902ee7254e (patch)
tree4bf9565f736c3788af6a12b4a50b4043b484040b /Userland/Applications
parent4b81b9718d78d8b3cb84891552b7d97b2a519303 (diff)
downloadserenity-38767e262d2dad5a2abe6180cf6229902ee7254e.zip
Piano: Add menus before showing the window
Otherwise, space is reserved but menus aren't shown.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Piano/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/main.cpp b/Userland/Applications/Piano/main.cpp
index b668c90745..fd4d34b923 100644
--- a/Userland/Applications/Piano/main.cpp
+++ b/Userland/Applications/Piano/main.cpp
@@ -53,7 +53,6 @@ int main(int argc, char** argv)
window->set_title("Piano");
window->resize(840, 600);
window->set_icon(app_icon.bitmap_for_size(16));
- window->show();
auto main_widget_updater = Core::Timer::construct(static_cast<int>((1 / 60.0) * 1000), [&] {
Core::EventLoop::current().post_event(main_widget, make<Core::CustomEvent>(0));
@@ -85,5 +84,7 @@ int main(int argc, char** argv)
auto& help_menu = window->add_menu("&Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Piano", app_icon, window));
+ window->show();
+
return app->exec();
}