1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 16:35:06 +00:00

MasterWord: Set icon before showing window

This commit is contained in:
thankyouverycool 2023-04-16 18:35:23 -04:00 committed by Andreas Kling
parent 7b05bf1c20
commit b8d88f33cf

View file

@ -41,7 +41,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-masterword"sv));
auto window = TRY(GUI::Window::try_create());
window->set_icon(app_icon.bitmap_for_size(16));
window->set_double_buffering_enabled(false);
window->set_title("MasterWord");
window->set_resizable(false);
@ -153,7 +153,5 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->show();
window->set_icon(app_icon.bitmap_for_size(16));
return app->exec();
}