mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +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
|
@ -243,7 +243,7 @@ ErrorOr<void> MainWidget::create_actions()
|
|||
|
||||
m_go_to_glyph_action = GUI::Action::create("&Go to Glyph...", { Mod_Ctrl, Key_G }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/go-to.png"sv)), [&](auto&) {
|
||||
DeprecatedString input;
|
||||
if (GUI::InputBox::show(window(), input, "Hexadecimal:"sv, "Go to glyph"sv, {}, GUI::InputType::NonemptyText) == GUI::InputBox::ExecResult::OK) {
|
||||
if (GUI::InputBox::show(window(), input, "Hexadecimal:"sv, "Go to glyph"sv, GUI::InputType::NonemptyText) == GUI::InputBox::ExecResult::OK) {
|
||||
auto maybe_code_point = AK::StringUtils::convert_to_uint_from_hex(input);
|
||||
if (!maybe_code_point.has_value())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue