mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibGUI: Allow navigating into symlinked directories in FilePicker
If you double-click on a symlink to a directory while browsing with a FilePicker, you most likely want to open the directory the symlink points to, not open the symlink itself. So let's do that. :^)
This commit is contained in:
parent
bcd05e199b
commit
8db4819271
3 changed files with 12 additions and 1 deletions
|
@ -214,7 +214,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, const StringView& file_
|
|||
const FileSystemModel::Node& node = m_model->node(local_index);
|
||||
auto path = node.full_path();
|
||||
|
||||
if (node.is_directory()) {
|
||||
if (node.is_directory() || node.is_symlink_to_directory()) {
|
||||
set_path(path);
|
||||
// NOTE: 'node' is invalid from here on
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue