summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2021-07-28 12:32:29 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-07-31 08:08:31 +0200
commit5fa8a107dfbaae9f17e7ce5a486d554f7275f9e1 (patch)
treede7058c1f908bd109fc59f75e9eb79d6774e76e1
parent38767e262d2dad5a2abe6180cf6229902ee7254e (diff)
downloadserenity-5fa8a107dfbaae9f17e7ce5a486d554f7275f9e1.zip
Calculator: Add menus before showing the window
Otherwise, space is reserved but menus aren't shown.
-rw-r--r--Userland/Applications/Calculator/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Applications/Calculator/main.cpp b/Userland/Applications/Calculator/main.cpp
index af2b37984d..ae9e56fc8f 100644
--- a/Userland/Applications/Calculator/main.cpp
+++ b/Userland/Applications/Calculator/main.cpp
@@ -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();
}