mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-20 18:12:53 +00:00
LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
parent
1f82beded3
commit
cdffe556c8
Notes:
sideshowbarker
2024-07-17 10:55:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: cdffe556c8
Pull-request: https://github.com/SerenityOS/serenity/pull/14021
Reviewed-by: https://github.com/linusg ✅
90 changed files with 232 additions and 232 deletions
|
@ -39,7 +39,7 @@ CharacterMapWidget::CharacterMapWidget()
|
|||
|
||||
m_choose_font_action = GUI::Action::create("Choose Font...", Gfx::Bitmap::try_load_from_file("/res/icons/16x16/app-font-editor.png").release_value_but_fixme_should_propagate_errors(), [&](auto&) {
|
||||
auto font_picker = GUI::FontPicker::construct(window(), &font(), false);
|
||||
if (font_picker->exec() == GUI::Dialog::ExecOK) {
|
||||
if (font_picker->exec() == GUI::Dialog::ExecResult::OK) {
|
||||
auto& font = *font_picker->font();
|
||||
Config::write_string("CharacterMap", "History", "Font", font.qualified_name());
|
||||
set_font(font);
|
||||
|
@ -70,7 +70,7 @@ CharacterMapWidget::CharacterMapWidget()
|
|||
|
||||
m_go_to_glyph_action = GUI::Action::create("Go to glyph...", { Mod_Ctrl, Key_G }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/go-to.png").release_value_but_fixme_should_propagate_errors(), [&](auto&) {
|
||||
String input;
|
||||
if (GUI::InputBox::show(window(), input, "Hexadecimal:", "Go to glyph") == GUI::InputBox::ExecOK && !input.is_empty()) {
|
||||
if (GUI::InputBox::show(window(), input, "Hexadecimal:", "Go to glyph") == GUI::InputBox::ExecResult::OK && !input.is_empty()) {
|
||||
auto maybe_code_point = AK::StringUtils::convert_to_uint_from_hex(input);
|
||||
if (!maybe_code_point.has_value())
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue