|
@@ -1675,6 +1675,11 @@ func (m *model) handleAutoAccepts(deviceID protocol.DeviceID, folder protocol.Fo
|
|
|
|
|
|
if len(ccDeviceInfos.remote.EncryptionPasswordToken) > 0 || len(ccDeviceInfos.local.EncryptionPasswordToken) > 0 {
|
|
|
fcfg.Type = config.FolderTypeReceiveEncrypted
|
|
|
+ // Override the user-configured defaults, as normally done by the GUI
|
|
|
+ fcfg.FSWatcherEnabled = false
|
|
|
+ fcfg.RescanIntervalS = 3600 * 24
|
|
|
+ fcfg.Versioning.Reset()
|
|
|
+ // Other necessary settings are ensured by FolderConfiguration itself
|
|
|
} else {
|
|
|
ignores := m.cfg.DefaultIgnores()
|
|
|
if err := m.setIgnores(fcfg, ignores.Lines); err != nil {
|