Refactor trash handling to improve portability
This commit is contained in:
parent
33890633b5
commit
9c0eb63b82
7 changed files with 173 additions and 166 deletions
|
|
@ -1125,7 +1125,9 @@ impl Operation {
|
|||
#[cfg(target_os = "macos")]
|
||||
Self::Restore { .. } => {
|
||||
// TODO: add support for macos
|
||||
return OperationError::from_msg("Restoring from trash is not supported on macos");
|
||||
return Err(OperationError::from_msg(
|
||||
"Restoring from trash is not supported on macos",
|
||||
));
|
||||
}
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
Self::Restore { items } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue