mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
90 changed files with 232 additions and 232 deletions
|
@ -59,20 +59,20 @@ EditGuideDialog::EditGuideDialog(GUI::Window* parent_window, String const& offse
|
|||
} else if (m_is_horizontal_checked) {
|
||||
m_orientation = Guide::Orientation::Horizontal;
|
||||
} else {
|
||||
done(ExecResult::ExecAborted);
|
||||
done(ExecResult::Aborted);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_offset_text_box->text().is_empty())
|
||||
done(ExecResult::ExecAborted);
|
||||
done(ExecResult::Aborted);
|
||||
|
||||
m_offset = m_offset_text_box->text();
|
||||
|
||||
done(ExecResult::ExecOK);
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
|
||||
cancel_button->on_click = [this](auto) {
|
||||
done(ExecResult::ExecCancel);
|
||||
done(ExecResult::Cancel);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue