mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
FileManager: Focus on file when opening file's location from Properties
This commit is contained in:
parent
e964d238b8
commit
0b5ca28475
Notes:
sideshowbarker
2024-07-18 21:49:23 +09:00
Author: https://github.com/speles
Commit: 0b5ca28475
Pull-request: https://github.com/SerenityOS/serenity/pull/5564
Issue: https://github.com/SerenityOS/serenity/issues/4647
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue