mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
Userland: Remember window state of productivity / editor applications
This commit is contained in:
parent
04ee15a5ad
commit
5d37e1c220
17 changed files with 34 additions and 16 deletions
|
@ -60,7 +60,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-calendar"sv));
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_title("Calendar");
|
||||
window->resize(600, 480);
|
||||
window->restore_size_and_position("Calendar"sv, "Window"sv, { { 600, 480 } });
|
||||
window->save_size_and_position_on_close("Calendar"sv, "Window"sv);
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
||||
auto calendar_widget = TRY(Calendar::CalendarWidget::create(window));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue