mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
Maps: Remember last window position and size
This commit is contained in:
parent
84139a10d2
commit
b5f91e3365
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title("Maps");
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
window->resize(640, 480);
|
||||
window->restore_size_and_position("Maps"sv, "Window"sv, { { 640, 480 } });
|
||||
window->save_size_and_position_on_close("Maps"sv, "Window"sv);
|
||||
|
||||
// Map widget
|
||||
MapWidget::Options options {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue