mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
PaintBrush: Exit the event loop on main window close.
This commit is contained in:
parent
b312215d33
commit
0d1ad84656
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ int main(int argc, char** argv)
|
|||
auto* window = new GWindow;
|
||||
window->set_title("PaintBrush");
|
||||
window->set_rect(100, 100, 640, 480);
|
||||
window->set_should_exit_event_loop_on_close(true);
|
||||
|
||||
auto* horizontal_container = new GWidget(nullptr);
|
||||
window->set_main_widget(horizontal_container);
|
||||
|
|
Loading…
Reference in a new issue