mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Close the MsgBox when clicking the OK button.
This feels vaguely crashy. I haven't tested window/widget destruction before so there's sure to be bugs.
This commit is contained in:
parent
3ebea05996
commit
959a1b0750
9 changed files with 65 additions and 9 deletions
|
@ -86,6 +86,7 @@ int main(int argc, char** argv)
|
|||
|
||||
tb->onReturnPressed = [] (TextBox& textBox) {
|
||||
printf("TextBox %p return pressed: '%s'\n", &textBox, textBox.text().characters());
|
||||
MsgBox(nullptr, textBox.text());
|
||||
};
|
||||
|
||||
WindowManager::the().setActiveWindow(widgetTestWindow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue