Skip to content

Commit

Permalink
lib/model: Don't lower rescan interval from default on auto accepted …
Browse files Browse the repository at this point in the history
…enc folder (fixes #8572) (#8573)
  • Loading branch information
Ratio2 committed Dec 21, 2022
1 parent f0126fe commit f9d6847
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/model/model.go
Expand Up @@ -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 {
Expand Down

0 comments on commit f9d6847

Please sign in to comment.