mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02: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:
committed by
Andreas Kling
parent
3b9f110161
commit
3583b62ad3
Notes:
sideshowbarker
2024-07-18 22:07:23 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/3583b62ad36 Pull-request: https://github.com/SerenityOS/serenity/pull/5423 Reviewed-by: https://github.com/awesomekling
@@ -126,7 +126,7 @@ NonnullRefPtr<GUI::Widget> DebugInfoWidget::build_variables_tab()
|
||||
return;
|
||||
|
||||
String value;
|
||||
if (GUI::InputBox::show(value, window(), "Enter new value:", "Set variable value") == GUI::InputBox::ExecOK) {
|
||||
if (GUI::InputBox::show(window(), value, "Enter new value:", "Set variable value") == GUI::InputBox::ExecOK) {
|
||||
auto& model = static_cast<VariablesModel&>(*m_variables_view->model());
|
||||
model.set_variable_value(index, value, window());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user