1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

FileManager: Show info about currently selected items in statusbar

When there's a non-zero number of selected items, we now show the
number in the statusbar, along with the total selected file size. :^)

Fixes #271.
This commit is contained in:
Andreas Kling 2019-09-12 18:59:13 +02:00
parent 13ca1ee8dc
commit d86fb8033e
3 changed files with 42 additions and 16 deletions

View file

@ -24,7 +24,7 @@ public:
void refresh();
Function<void(const StringView&)> on_path_change;
Function<void(GAbstractView&)> on_selection;
Function<void(GAbstractView&)> on_selection_change;
Function<void(const StringView&)> on_status_message;
Function<void(int done, int total)> on_thumbnail_progress;
@ -62,6 +62,7 @@ private:
void handle_activation(const GModelIndex&);
void set_status_message(const StringView&);
void update_statusbar();
ViewMode m_view_mode { Invalid };