mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-24 20:18:26 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
@@ -94,7 +94,7 @@ void TextEditor::create_actions()
|
||||
m_go_to_line_action = Action::create(
|
||||
"Go to line...", { Mod_Ctrl, Key_L }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/go-to.png").release_value_but_fixme_should_propagate_errors(), [this](auto&) {
|
||||
String value;
|
||||
if (InputBox::show(window(), value, "Line:", "Go to line") == InputBox::ExecOK) {
|
||||
if (InputBox::show(window(), value, "Line:", "Go to line") == InputBox::ExecResult::OK) {
|
||||
auto line_target = value.to_uint();
|
||||
if (line_target.has_value()) {
|
||||
set_cursor_and_focus_line(line_target.value() - 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user