浏览代码

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

speles 4 年之前
父节点
当前提交
0b5ca28475
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Applications/FileManager/PropertiesWindow.cpp

+ 1 - 0
Userland/Applications/FileManager/PropertiesWindow.cpp

@@ -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)) {