mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
MasterWord: Set icon before showing window
This commit is contained in:
parent
7b05bf1c20
commit
b8d88f33cf
Notes:
sideshowbarker
2024-07-16 21:45:42 +09:00
Author: https://github.com/thankyouverycool
Commit: b8d88f33cf
Pull-request: https://github.com/SerenityOS/serenity/pull/18406
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 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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue