mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 17:18:11 +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
|
@ -65,7 +65,7 @@ ProcessChooser::ProcessChooser(StringView window_title, StringView button_label,
|
|||
auto& cancel_button = button_container.add<GUI::Button>("Cancel");
|
||||
cancel_button.set_fixed_width(80);
|
||||
cancel_button.on_click = [this](auto) {
|
||||
done(ExecCancel);
|
||||
done(ExecResult::Cancel);
|
||||
};
|
||||
|
||||
m_process_model->update();
|
||||
|
@ -102,7 +102,7 @@ ProcessChooser::ProcessChooser(StringView window_title, StringView button_label,
|
|||
void ProcessChooser::set_pid_from_index_and_close(ModelIndex const& index)
|
||||
{
|
||||
m_pid = index.data(GUI::ModelRole::Custom).as_i32();
|
||||
done(ExecOK);
|
||||
done(ExecResult::OK);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue