mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
Piano: Exit the event loop on main window close.
This commit is contained in:
parent
0d1ad84656
commit
67fe583f6a
Notes:
sideshowbarker
2024-07-19 13:05:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/67fe583f6a0
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
Reference in a new issue