Переглянути джерело

FontEditor: Use compact InputBox for Go to Glyph action

thankyouverycool 2 роки тому
батько
коміт
bc8b409a3c
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Userland/Applications/FontEditor/MainWidget.cpp

+ 1 - 1
Userland/Applications/FontEditor/MainWidget.cpp

@@ -243,7 +243,7 @@ ErrorOr<void> MainWidget::create_actions()
 
 
     m_go_to_glyph_action = GUI::Action::create("&Go to Glyph...", { Mod_Ctrl, Key_G }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/go-to.png"sv)), [&](auto&) {
     m_go_to_glyph_action = GUI::Action::create("&Go to Glyph...", { Mod_Ctrl, Key_G }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/go-to.png"sv)), [&](auto&) {
         String input;
         String input;
-        if (GUI::InputBox::show(window(), input, "Hexadecimal:"sv, "Go to glyph"sv, GUI::InputType::NonemptyText) == GUI::InputBox::ExecResult::OK) {
+        if (GUI::InputBox::show(window(), input, {}, "Go to glyph"sv, GUI::InputType::NonemptyText, "Hexadecimal"sv) == GUI::InputBox::ExecResult::OK) {
             auto maybe_code_point = AK::StringUtils::convert_to_uint_from_hex(input);
             auto maybe_code_point = AK::StringUtils::convert_to_uint_from_hex(input);
             if (!maybe_code_point.has_value())
             if (!maybe_code_point.has_value())
                 return;
                 return;