diff --git a/src/operation.rs b/src/operation.rs index 829cd15..96b4497 100644 --- a/src/operation.rs +++ b/src/operation.rs @@ -288,6 +288,12 @@ impl Operation { .send(Message::PendingProgress(id, 100.0)) .await; } + #[cfg(target_os = "macos")] + Self::Restore { .. } => { + // TODO: add support for macos + return Err("Restoring from trash is not supported on macos".to_string()); + } + #[cfg(not(target_os = "macos"))] Self::Restore { paths } => { let total = paths.len(); let mut count = 0; diff --git a/src/tab.rs b/src/tab.rs index 632823c..924204e 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -147,6 +147,9 @@ pub fn folder_icon_symbolic(path: &PathBuf, icon_size: u16) -> widget::icon::Han } pub fn trash_icon_symbolic(icon_size: u16) -> widget::icon::Handle { + #[cfg(target_os = "macos")] + let full = false; // TODO: add support for macos + #[cfg(not(target_os = "macos"))] let full = match trash::os_limited::list() { Ok(entries) => !entries.is_empty(), Err(_err) => false,