1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

Piano: Exit the event loop on main window close.

This commit is contained in:
Andreas Kling 2019-07-23 06:45:00 +02:00
parent 0d1ad84656
commit 67fe583f6a

View file

@ -16,6 +16,7 @@ int main(int argc, char** argv)
auto* window = new GWindow;
window->set_title("Piano");
window->set_rect(100, 100, 512, 512);
window->set_should_exit_event_loop_on_close(true);
auto* piano_widget = new PianoWidget;
window->set_main_widget(piano_widget);