mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +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
|
@ -43,7 +43,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto mail_widget = window->set_main_widget<MailWidget>();
|
||||
|
||||
window->set_title("Mail");
|
||||
window->resize(640, 400);
|
||||
window->restore_size_and_position("Mail"sv, "Window"sv, { { 640, 400 } });
|
||||
window->save_size_and_position_on_close("Mail"sv, "Window"sv);
|
||||
|
||||
auto file_menu = window->add_menu("&File"_string);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue