Revision 0bd56b7c trunk/Pithos.Core/Agents/NetworkAgent.cs

b/trunk/Pithos.Core/Agents/NetworkAgent.cs
318 318
                                client.ListObjects(accountInfo.UserName, FolderConstants.TrashContainer, since));
319 319

  
320 320
                var listShared = Task<IList<ObjectInfo>>.Factory.StartNew(() =>
321
                                client.ListSharedObjects());
321
                                client.ListSharedObjects(since));
322 322

  
323 323
                var listAll = Task.Factory.TrackedSequence(
324 324
                    () => listObjects,
......
584 584
                //Now we can store the object's metadata without worrying about ghost status entries
585 585
                StatusKeeper.StoreInfo(localPath, cloudFile);
586 586
                
587
                //Notify listeners that a local file has changed
588
                StatusNotification.NotifyChangedFile(localPath);
589

  
590 587
            }
591 588
        }
592 589

  
......
643 640
                    File.Replace(tempPath,localPath,null,true);
644 641
                else
645 642
                    File.Move(tempPath,localPath);
643
                //Notify listeners that a local file has changed
644
                StatusNotification.NotifyChangedFile(localPath);
645

  
646 646
            });
647 647
            return getObject;
648 648
        }
......
730 730
                }
731 731
            }
732 732

  
733
            //Want to avoid notifications if no changes were made
734
            var hasChanges = blockUpdater.HasBlocks;
733 735
            blockUpdater.Commit();
736
            
737
            if (hasChanges)
738
                //Notify listeners that a local file has changed
739
                StatusNotification.NotifyChangedFile(localPath);
740

  
734 741
            Log.InfoFormat("[BLOCK GET] COMPLETE {0}", localPath);            
735 742
        }
736 743

  

Also available in: Unified diff