mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
This commit is contained in:
parent
f9c380d45b
commit
606154b183
@ -198,7 +198,10 @@ func (c *folderSummaryService) processUpdate(ev events.Event) {
|
|||||||
|
|
||||||
case events.StateChanged:
|
case events.StateChanged:
|
||||||
data := ev.Data.(map[string]interface{})
|
data := ev.Data.(map[string]interface{})
|
||||||
if !(data["to"].(string) == "idle" && data["from"].(string) == "syncing") {
|
if data["to"].(string) != "idle" {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if from := data["from"].(string); from != "syncing" && from != "sync-preparing" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user