1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

Userland: Remember window state of productivity / editor applications

This commit is contained in:
Bastiaan van der Plaat 2023-09-21 18:05:11 +02:00 committed by Andrew Kaster
parent 04ee15a5ad
commit 5d37e1c220
17 changed files with 34 additions and 16 deletions

View file

@ -47,7 +47,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto main_widget = TRY(MainWidget::try_create(track_manager, audio_loop));
window->set_main_widget(main_widget);
window->set_title("Piano");
window->resize(840, 600);
window->restore_size_and_position("Piano"sv, "Window"sv, { { 840, 600 } });
window->save_size_and_position_on_close("Piano"sv, "Window"sv);
window->set_icon(app_icon.bitmap_for_size(16));
auto wav_progress_window = ExportProgressWindow::construct(*window, wav_percent_written);