mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 20:35:07 +00:00
MasterWord: Set icon before showing window
This commit is contained in:
parent
7b05bf1c20
commit
b8d88f33cf
1 changed files with 1 additions and 3 deletions
|
@ -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 app_icon = TRY(GUI::Icon::try_create_default_icon("app-masterword"sv));
|
||||||
|
|
||||||
auto window = TRY(GUI::Window::try_create());
|
auto window = TRY(GUI::Window::try_create());
|
||||||
|
window->set_icon(app_icon.bitmap_for_size(16));
|
||||||
window->set_double_buffering_enabled(false);
|
window->set_double_buffering_enabled(false);
|
||||||
window->set_title("MasterWord");
|
window->set_title("MasterWord");
|
||||||
window->set_resizable(false);
|
window->set_resizable(false);
|
||||||
|
@ -153,7 +153,5 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
||||||
window->show();
|
window->show();
|
||||||
|
|
||||||
window->set_icon(app_icon.bitmap_for_size(16));
|
|
||||||
|
|
||||||
return app->exec();
|
return app->exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue