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-14 08:37:07 +00:00
committed by Jakob Borg
parent 5d2414dfa9
commit 5a7fad0bcd
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.updateLocalsFromScanning(f.folderID, files)
if found {
f.model.receivedFile(f.folderID, lastFile)