FileManager: Kindly ask the user if they want to delete a file

This commit is contained in:
Musab Kılıç 2021-09-02 22:57:15 +03:00 committed by Andreas Kling
parent b275b8c87a
commit 432839c2e9
Notes: sideshowbarker 2024-07-18 04:51:17 +09:00

View file

@ -20,9 +20,9 @@ void delete_paths(Vector<String> const& paths, bool should_confirm, GUI::Window*
{
String message;
if (paths.size() == 1) {
message = String::formatted("Really delete {}?", LexicalPath::basename(paths[0]));
message = String::formatted("Are you sure you want to delete {}?", LexicalPath::basename(paths[0]));
} else {
message = String::formatted("Really delete {} files?", paths.size());
message = String::formatted("Are you sure you want to delete {} files?", paths.size());
}
if (should_confirm) {