mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38: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
|
@ -28,7 +28,7 @@ FontSettingsWidget::FontSettingsWidget()
|
|||
auto& default_font_button = *find_descendant_of_type_named<GUI::Button>("default_font_button");
|
||||
default_font_button.on_click = [this](auto) {
|
||||
auto font_picker = GUI::FontPicker::construct(window(), &m_default_font_label->font(), false);
|
||||
if (font_picker->exec() == GUI::Dialog::ExecOK) {
|
||||
if (font_picker->exec() == GUI::Dialog::ExecResult::OK) {
|
||||
update_label_with_font(*m_default_font_label, *font_picker->font());
|
||||
set_modified(true);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ FontSettingsWidget::FontSettingsWidget()
|
|||
auto& fixed_width_font_button = *find_descendant_of_type_named<GUI::Button>("fixed_width_font_button");
|
||||
fixed_width_font_button.on_click = [this](auto) {
|
||||
auto font_picker = GUI::FontPicker::construct(window(), &m_fixed_width_font_label->font(), true);
|
||||
if (font_picker->exec() == GUI::Dialog::ExecOK) {
|
||||
if (font_picker->exec() == GUI::Dialog::ExecResult::OK) {
|
||||
update_label_with_font(*m_fixed_width_font_label, *font_picker->font());
|
||||
set_modified(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue