Fix slow startup

Remove unnecessary watch of sub-directories in trash bins, which causes really long startup times
This commit is contained in:
Jorge Menjivar 2025-07-23 19:38:18 -07:00 committed by Jeremy Soller
parent 35a9bd5347
commit cb36a25060

View file

@ -5852,7 +5852,7 @@ impl Application for App {
for path in trash_bins {
if let Err(e) = watcher
.watcher()
.watch(&path, notify::RecursiveMode::Recursive)
.watch(&path, notify::RecursiveMode::NonRecursive)
{
log::warn!(
"failed to add trash bin `{}` to watcher: {e:?}",