diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2023-04-29 10:41:48 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-30 05:48:14 +0200 |
commit | 91bafc2653bcbcc0b8d05b5589324375b92f91b5 (patch) | |
tree | 3ebc611c104c9c1c47c4b85b594e36f91c66c026 /Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp | |
parent | 3d53dc82283e7eccf7a27918dbbcd391dc4988f7 (diff) | |
download | serenity-91bafc2653bcbcc0b8d05b5589324375b92f91b5.zip |
LibGUI+Userland: Port Labels to String
Diffstat (limited to 'Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp')
-rw-r--r-- | Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp b/Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp index df005586b1..5ef088abf1 100644 --- a/Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp +++ b/Userland/Applications/TerminalSettings/TerminalSettingsWidget.cpp @@ -101,13 +101,13 @@ TerminalSettingsViewWidget::TerminalSettingsViewWidget() else m_font = Gfx::FontDatabase::the().get_by_name(font_name); m_original_font = m_font; - font_text.set_text(m_font->human_readable_name()); + font_text.set_text(String::from_deprecated_string(m_font->human_readable_name()).release_value_but_fixme_should_propagate_errors()); font_text.set_font(m_font); font_button.on_click = [&](auto) { auto picker = GUI::FontPicker::construct(window(), m_font.ptr(), true); if (picker->exec() == GUI::Dialog::ExecResult::OK) { m_font = picker->font(); - font_text.set_text(m_font->human_readable_name()); + font_text.set_text(String::from_deprecated_string(m_font->human_readable_name()).release_value_but_fixme_should_propagate_errors()); font_text.set_font(m_font); Config::write_string("Terminal"sv, "Text"sv, "Font"sv, m_font->qualified_name()); set_modified(true); @@ -120,7 +120,7 @@ TerminalSettingsViewWidget::TerminalSettingsViewWidget() if (use_default_font) { font_selection.set_enabled(false); m_font = Gfx::FontDatabase::the().default_fixed_width_font(); - font_text.set_text(m_font->human_readable_name()); + font_text.set_text(String::from_deprecated_string(m_font->human_readable_name()).release_value_but_fixme_should_propagate_errors()); font_text.set_font(m_font); Config::write_string("Terminal"sv, "Text"sv, "Font"sv, m_font->qualified_name()); } else { |