mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
File Manager: Differentiate between navigation and rename errors
Adds a new on_rename_error handler and renames the old on_error handler to on_directory_change_error in FileSystemModel. The on_rename_error handler creates a MessageDialog with the error message.
This commit is contained in:
parent
35b930112f
commit
fe7bacc2df
3 changed files with 11 additions and 6 deletions
|
@ -114,7 +114,8 @@ public:
|
|||
|
||||
Function<void(int done, int total)> on_thumbnail_progress;
|
||||
Function<void()> on_complete;
|
||||
Function<void(int error, const char* error_string)> on_error;
|
||||
Function<void(int error, const char* error_string)> on_directory_change_error;
|
||||
Function<void(int error, const char* error_string)> on_rename_error;
|
||||
|
||||
virtual int tree_column() const override { return Column::Name; }
|
||||
virtual int row_count(const ModelIndex& = ModelIndex()) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue