mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 06:39:07 +00:00
LibGUI+Userland: Switch order of parameters for InputBox::show
Because usage of the input_type parameter is now higher than of the placeholder parameter, this makes for a cleaner API.
This commit is contained in:
parent
8095d9276b
commit
506c26acce
Notes:
sideshowbarker
2024-07-17 01:27:18 +09:00
Author: https://github.com/karolba
Commit: 506c26acce
Pull-request: https://github.com/SerenityOS/serenity/pull/16733
Reviewed-by: https://github.com/ADKaster ✅
13 changed files with 20 additions and 20 deletions
|
@ -119,7 +119,7 @@ GalleryWidget::GalleryWidget()
|
|||
|
||||
m_input_button->on_click = [&](auto) {
|
||||
DeprecatedString value;
|
||||
if (GUI::InputBox::show(window(), value, "Enter input:"sv, "Input"sv, {}, GUI::InputType::NonemptyText) == GUI::InputBox::ExecResult::OK)
|
||||
if (GUI::InputBox::show(window(), value, "Enter input:"sv, "Input"sv, GUI::InputType::NonemptyText) == GUI::InputBox::ExecResult::OK)
|
||||
m_text_editor->set_text(value);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue