summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FilePicker.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-02-11 20:51:04 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:45:09 +0000
commite39adc4772dbc575fc8209130129270ceea24229 (patch)
treeb86180f19b56c66008246cbeea1d198847572f55 /Userland/Libraries/LibGUI/FilePicker.cpp
parentb5cb9a9ebb0c1203b9f47479b7fc15f9af8e421e (diff)
downloadserenity-e39adc4772dbc575fc8209130129270ceea24229.zip
Userland: Set Button text using the new String class
Diffstat (limited to 'Userland/Libraries/LibGUI/FilePicker.cpp')
-rw-r--r--Userland/Libraries/LibGUI/FilePicker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/FilePicker.cpp b/Userland/Libraries/LibGUI/FilePicker.cpp
index ee4203659f..97fb785394 100644
--- a/Userland/Libraries/LibGUI/FilePicker.cpp
+++ b/Userland/Libraries/LibGUI/FilePicker.cpp
@@ -217,14 +217,14 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, StringView filename, St
};
auto& ok_button = *widget->find_descendant_of_type_named<GUI::Button>("ok_button");
- ok_button.set_text_deprecated(ok_button_name(m_mode));
+ ok_button.set_text(ok_button_name(m_mode));
ok_button.on_click = [this](auto) {
on_file_return();
};
ok_button.set_enabled(m_mode == Mode::OpenFolder || !m_filename_textbox->text().is_empty());
auto& cancel_button = *widget->find_descendant_of_type_named<GUI::Button>("cancel_button");
- cancel_button.set_text_deprecated("Cancel");
+ cancel_button.set_text(String::from_utf8_short_string("Cancel"sv));
cancel_button.on_click = [this](auto) {
done(ExecResult::Cancel);
};