mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +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
|
@ -105,7 +105,7 @@ void TextEditor::create_actions()
|
|||
m_go_to_line_action = Action::create(
|
||||
"Go to line...", { Mod_Ctrl, Key_L }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](auto&) {
|
||||
String value;
|
||||
if (InputBox::show(value, window(), "Line:", "Go to line") == InputBox::ExecOK) {
|
||||
if (InputBox::show(window(), value, "Line:", "Go to line") == InputBox::ExecOK) {
|
||||
auto line_target = value.to_uint();
|
||||
if (line_target.has_value()) {
|
||||
set_cursor_and_focus_line(line_target.value() - 1, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue