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
Notes: sideshowbarker 2024-07-19 13:05:17 +09:00

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);