mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
FileManager: Don't show new dotfiles if the option is disabled
This commit is contained in:
parent
d4fe02152a
commit
d24ec130bf
Notes:
sideshowbarker
2024-07-17 11:11:33 +09:00
Author: https://github.com/OFFTKP 🔰 Commit: https://github.com/SerenityOS/serenity/commit/d24ec130bf Pull-request: https://github.com/SerenityOS/serenity/pull/13953 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -384,6 +384,8 @@ void FileSystemModel::handle_file_event(Core::FileWatcherEvent const& event)
|
|||
LexicalPath path { event.event_path };
|
||||
auto& parts = path.parts_view();
|
||||
StringView child_name = parts.last();
|
||||
if (!m_should_show_dotfiles && child_name.starts_with("."))
|
||||
break;
|
||||
|
||||
auto parent_name = path.parent().string();
|
||||
auto parent = node_for_path(parent_name);
|
||||
|
|
Loading…
Add table
Reference in a new issue