mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
FileManager: Clear the selection after deleting files
This commit is contained in:
parent
f639445456
commit
39fc7359d4
Notes:
sideshowbarker
2024-07-17 08:59:18 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/39fc7359d4 Pull-request: https://github.com/SerenityOS/serenity/pull/16534 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 0 deletions
|
@ -546,6 +546,7 @@ void DirectoryView::do_delete(bool should_confirm)
|
||||||
auto paths = selected_file_paths();
|
auto paths = selected_file_paths();
|
||||||
VERIFY(!paths.is_empty());
|
VERIFY(!paths.is_empty());
|
||||||
delete_paths(paths, should_confirm, window());
|
delete_paths(paths, should_confirm, window());
|
||||||
|
current_view().selection().clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DirectoryView::can_modify_current_selection()
|
bool DirectoryView::can_modify_current_selection()
|
||||||
|
|
Loading…
Reference in a new issue