mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
Notes:
sideshowbarker
2024-07-18 08:44:24 +09:00
Author: https://github.com/ls-1801 🔰 Commit: https://github.com/SerenityOS/serenity/commit/fe7bacc2dfb Pull-request: https://github.com/SerenityOS/serenity/pull/8619 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/MaxWipfli Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/gunnarbeutner Reviewed-by: https://github.com/sin-ack
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user