summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorKarol Baraniecki <karol@baraniecki.eu>2022-12-30 21:13:54 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-02-04 18:46:39 -0700
commit506c26acce41367c31da683c8ed3194babdc2a85 (patch)
treebd9aa7b488c160f51675d81a9ca2d6c3446f5dc2 /Userland/Demos
parent8095d9276be5aa6186a2553dec7d026dc73bd57e (diff)
downloadserenity-506c26acce41367c31da683c8ed3194babdc2a85.zip
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.
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/WidgetGallery/GalleryWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/WidgetGallery/GalleryWidget.cpp b/Userland/Demos/WidgetGallery/GalleryWidget.cpp
index 780eb13d43..295df36d33 100644
--- a/Userland/Demos/WidgetGallery/GalleryWidget.cpp
+++ b/Userland/Demos/WidgetGallery/GalleryWidget.cpp
@@ -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);
};