mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:08:10 +00:00
LibGUI: Swap order of InputBox value and parent window args
This is now consistent with the other dialog classes.
This commit is contained in:
parent
3b9f110161
commit
3583b62ad3
14 changed files with 34 additions and 34 deletions
|
@ -462,7 +462,7 @@ int main(int argc, char** argv)
|
|||
auto& input_button = input_button_container.add<GUI::Button>("Input...");
|
||||
String value;
|
||||
input_button.on_click = [&](auto) {
|
||||
if (GUI::InputBox::show(value, window, "Enter input:", "Input Box") == GUI::InputBox::ExecOK && !value.is_empty())
|
||||
if (GUI::InputBox::show(window, value, "Enter input:", "Input Box") == GUI::InputBox::ExecOK && !value.is_empty())
|
||||
input_label.set_text(value);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue