mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 10:28:49 -07: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
|
fcfg.Type = config.FolderTypeReceiveEncrypted
|
||||||
// Override the user-configured defaults, as normally done by the GUI
|
// Override the user-configured defaults, as normally done by the GUI
|
||||||
fcfg.FSWatcherEnabled = false
|
fcfg.FSWatcherEnabled = false
|
||||||
fcfg.RescanIntervalS = 3600 * 24
|
if fcfg.RescanIntervalS != 0 {
|
||||||
|
minRescanInterval := 3600 * 24
|
||||||
|
if fcfg.RescanIntervalS < minRescanInterval {
|
||||||
|
fcfg.RescanIntervalS = minRescanInterval
|
||||||
|
}
|
||||||
|
}
|
||||||
fcfg.Versioning.Reset()
|
fcfg.Versioning.Reset()
|
||||||
// Other necessary settings are ensured by FolderConfiguration itself
|
// Other necessary settings are ensured by FolderConfiguration itself
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user