Emit ConfigSaved event

This commit is contained in:
Audrius Butkevicius
2014-09-06 16:31:23 +01:00
parent 0d51f83d2d
commit 8f32decf2d
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import (
"strconv"
"code.google.com/p/go.crypto/bcrypt"
"github.com/syncthing/syncthing/events"
"github.com/syncthing/syncthing/logger"
"github.com/syncthing/syncthing/osutil"
"github.com/syncthing/syncthing/protocol"
@@ -260,6 +261,7 @@ func (cfg *Configuration) Save() error {
if err != nil {
l.Warnln("Saving config:", err)
}
events.Default.Log(events.ConfigSaved, cfg)
return err
}