mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
FileManager: Kindly ask the user if they want to delete a file
This commit is contained in:
parent
b275b8c87a
commit
432839c2e9
Notes:
sideshowbarker
2024-07-18 04:51:17 +09:00
Author: https://github.com/musabkilic Commit: https://github.com/SerenityOS/serenity/commit/432839c2e9c Pull-request: https://github.com/SerenityOS/serenity/pull/9757
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;
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue