LibGUI+FileManager: Add setting for showing/hiding dotfiles

GUI::FileSystemModel can now be told to display (or not display) files
whose name start with a dot (other than . and ..)
This commit is contained in:
Andreas Kling 2020-07-18 18:46:37 +02:00
parent ad57a2f18b
commit 9710c9742c
Notes: sideshowbarker 2024-07-19 04:42:41 +09:00
3 changed files with 18 additions and 1 deletions

View file

@ -162,6 +162,9 @@ public:
return Core::DateTime::from_timestamp(timestamp).to_string();
}
bool should_show_dotfiles() const { return m_should_show_dotfiles; }
void set_should_show_dotfiles(bool);
private:
FileSystemModel(const StringView& root_path, Mode);
@ -192,6 +195,8 @@ private:
unsigned m_thumbnail_progress { 0 };
unsigned m_thumbnail_progress_total { 0 };
bool m_should_show_dotfiles { false };
};
}