Merge branch 'master' of https://github.com/pop-os/cosmic-files
This commit is contained in:
commit
dc3c4eb731
2 changed files with 18 additions and 8 deletions
13
src/app.rs
13
src/app.rs
|
|
@ -1466,13 +1466,18 @@ impl Application for App {
|
|||
move |event_res: Result<notify::Event, notify::Error>| match event_res {
|
||||
Ok(event) => {
|
||||
match &event.kind {
|
||||
notify::EventKind::Access(_)
|
||||
| notify::EventKind::Modify(
|
||||
notify::event::ModifyKind::Metadata(_),
|
||||
) => {
|
||||
notify::EventKind::Access(_) => {
|
||||
// Data not mutated
|
||||
return;
|
||||
}
|
||||
notify::EventKind::Modify(
|
||||
notify::event::ModifyKind::Metadata(e),
|
||||
) if (*e != notify::event::MetadataKind::Any
|
||||
&& *e != notify::event::MetadataKind::WriteTime) =>
|
||||
{
|
||||
// Data not mutated nor modify time changed
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -666,13 +666,18 @@ impl Application for App {
|
|||
move |event_res: Result<notify::Event, notify::Error>| match event_res {
|
||||
Ok(event) => {
|
||||
match &event.kind {
|
||||
notify::EventKind::Access(_)
|
||||
| notify::EventKind::Modify(
|
||||
notify::event::ModifyKind::Metadata(_),
|
||||
) => {
|
||||
notify::EventKind::Access(_) => {
|
||||
// Data not mutated
|
||||
return;
|
||||
}
|
||||
notify::EventKind::Modify(
|
||||
notify::event::ModifyKind::Metadata(e),
|
||||
) if (*e != notify::event::MetadataKind::Any
|
||||
&& *e != notify::event::MetadataKind::WriteTime) =>
|
||||
{
|
||||
// Data not mutated nor modify time changed
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue