Merge pull request #452 from marksamman/master
Move item to trash without confirming on Windows
This commit is contained in:
commit
cb08f35c7f
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ void MoveItemToTrash(const base::FilePath& path) {
|
||||||
SHFILEOPSTRUCT file_operation = {0};
|
SHFILEOPSTRUCT file_operation = {0};
|
||||||
file_operation.wFunc = FO_DELETE;
|
file_operation.wFunc = FO_DELETE;
|
||||||
file_operation.pFrom = double_terminated_path;
|
file_operation.pFrom = double_terminated_path;
|
||||||
file_operation.fFlags = FOF_ALLOWUNDO;
|
file_operation.fFlags = FOF_ALLOWUNDO | FOF_SILENT | FOF_NOCONFIRMATION;
|
||||||
SHFileOperation(&file_operation);
|
SHFileOperation(&file_operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue