Fix slow startup
Remove unnecessary watch of sub-directories in trash bins, which causes really long startup times
This commit is contained in:
parent
35a9bd5347
commit
cb36a25060
1 changed files with 1 additions and 1 deletions
|
|
@ -5852,7 +5852,7 @@ impl Application for App {
|
||||||
for path in trash_bins {
|
for path in trash_bins {
|
||||||
if let Err(e) = watcher
|
if let Err(e) = watcher
|
||||||
.watcher()
|
.watcher()
|
||||||
.watch(&path, notify::RecursiveMode::Recursive)
|
.watch(&path, notify::RecursiveMode::NonRecursive)
|
||||||
{
|
{
|
||||||
log::warn!(
|
log::warn!(
|
||||||
"failed to add trash bin `{}` to watcher: {e:?}",
|
"failed to add trash bin `{}` to watcher: {e:?}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue