Skip to content

Commit

Permalink
gui: Fix rescan interval on auto accepted encrypted folder (fixes #8572
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Ratio2 committed Oct 2, 2022
1 parent a206366 commit 7410527
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/model/model.go
Original file line number Diff line number Diff line change
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 7410527

Please sign in to comment.