lib/model: Emit LocalDiskUpdated events on detecting local changes

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3055
This commit is contained in:
Nate Morrison
2016-05-19 00:19:26 +00:00
committed by Jakob Borg
parent 22280db5db
commit 86ca58e2a9
7 changed files with 85 additions and 15 deletions

View File

@@ -1398,7 +1398,9 @@ func (f *rwFolder) dbUpdaterRoutine() {
lastFile = job.file
}
f.model.updateLocals(f.folderID, files)
// All updates to file/folder objects that originated remotely
// (across the network) use this call to updateLocals
f.model.updateLocalsFromPulling(f.folderID, files)
if found {
f.model.receivedFile(f.folderID, lastFile)