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

FileManager: Focus on file when opening file's location from Properties

This commit is contained in:
speles 2021-02-28 20:54:40 +02:00 committed by Andreas Kling
parent e964d238b8
commit 0b5ca28475

View file

@ -114,6 +114,7 @@ PropertiesWindow::PropertiesWindow(const String& path, bool disable_rename, Wind
auto properties = Vector<PropertyValuePair>();
properties.append({ "Type:", get_description(m_mode) });
auto parent_link = URL::create_with_file_protocol(m_parent_path);
parent_link.set_fragment(m_name);
properties.append(PropertyValuePair { "Location:", path, Optional(parent_link) });
if (S_ISLNK(m_mode)) {