mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07:00
This commit is contained in:
parent
f9c380d45b
commit
606154b183
@ -198,7 +198,10 @@ func (c *folderSummaryService) processUpdate(ev events.Event) {
|
||||
|
||||
case events.StateChanged:
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user