1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

FileManager: Return a StringView from PropertiesWindow::get_description

This commit is contained in:
Lucas CHOLLET 2023-07-09 11:37:02 -04:00 committed by Andreas Kling
parent ea2ffdfd0e
commit 3e6e75bb5e
2 changed files with 11 additions and 11 deletions

View file

@ -98,7 +98,7 @@ ErrorOr<void> PropertiesWindow::create_widgets(bool disable_rename)
m_old_mode = st.st_mode;
auto* type = general_tab->find_descendant_of_type_named<GUI::Label>("type");
type->set_text(TRY(String::from_deprecated_string(get_description(m_mode))));
type->set_text(TRY(String::from_utf8(get_description(m_mode))));
if (S_ISLNK(m_mode)) {
auto link_destination_or_error = FileSystem::read_link(m_path);