1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

FileManager: Add on_selection event for DirectoryView

There needs to be a way to know when a user has selected a file. 
file_system_model->on_selection_changed only fires on directory 
change.
This commit is contained in:
Aaron Malpas 2019-09-10 23:37:55 +10:00 committed by Andreas Kling
parent 8920ece8f6
commit b894803a30
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,7 @@ public:
void refresh();
Function<void(const StringView&)> on_path_change;
Function<void(GAbstractView&)> on_selection;
Function<void(const StringView&)> on_status_message;
Function<void(int done, int total)> on_thumbnail_progress;