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:
parent
0d1ad84656
commit
67fe583f6a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue