mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
lib/model: Don't lower rescan interval from default on auto accepted enc folder (fixes #8572) (#8573)
This commit is contained in:
parent
f0126fe1ab
commit
f9d68474ac
@ -1684,7 +1684,12 @@ func (m *model) handleAutoAccepts(deviceID protocol.DeviceID, folder protocol.Fo
|
||||
fcfg.Type = config.FolderTypeReceiveEncrypted
|
||||
// Override the user-configured defaults, as normally done by the GUI
|
||||
fcfg.FSWatcherEnabled = false
|
||||
fcfg.RescanIntervalS = 3600 * 24
|
||||
if fcfg.RescanIntervalS != 0 {
|
||||
minRescanInterval := 3600 * 24
|
||||
if fcfg.RescanIntervalS < minRescanInterval {
|
||||
fcfg.RescanIntervalS = minRescanInterval
|
||||
}
|
||||
}
|
||||
fcfg.Versioning.Reset()
|
||||
// Other necessary settings are ensured by FolderConfiguration itself
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user