mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 07:11:52 +00:00
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:
parent
ad57a2f18b
commit
9710c9742c
Notes:
sideshowbarker
2024-07-19 04:42:41 +09:00
Author: https://github.com/awesomekling
Commit: 9710c9742c
3 changed files with 18 additions and 1 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue