Skip to content

Commit

Permalink
lib/model: Fix rescan interval on auto accepted encrypted folder (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratio2 committed Oct 2, 2022
1 parent a206366 commit 29e79f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/model/model.go
Expand Up @@ -1682,7 +1682,9 @@ 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 == 60 || fcfg.RescanIntervalS == 3600 {
fcfg.RescanIntervalS = 3600 * 24
}
fcfg.Versioning.Reset()
// Other necessary settings are ensured by FolderConfiguration itself
} else {
Expand Down

0 comments on commit 29e79f0

Please sign in to comment.