mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
FileManager: Kindly ask the user if they want to delete a file
This commit is contained in:
parent
b275b8c87a
commit
432839c2e9
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@ void delete_paths(Vector<String> const& paths, bool should_confirm, GUI::Window*
|
||||||
{
|
{
|
||||||
String message;
|
String message;
|
||||||
if (paths.size() == 1) {
|
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 {
|
} 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) {
|
if (should_confirm) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue