lib/model: Do not wait for scan when setting ignores (fixes #7893) (#7891)

This commit is contained in:
Simon Frei
2021-08-17 09:23:33 +02:00
committed by GitHub
parent e1bf1e672e
commit c025e76f30
2 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -50,6 +50,7 @@ type service interface {
Override()
Revert()
DelayScan(d time.Duration)
ScheduleScan()
SchedulePull() // something relevant changed, we should try a pull
Jobs(page, perpage int) ([]string, []string, int) // In progress, Queued, skipped
Scan(subs []string) error
@@ -2115,7 +2116,7 @@ func (m *model) SetIgnores(folder string, content []string) error {
runner, ok := m.folderRunners[folder]
m.fmut.RUnlock()
if ok {
return runner.Scan(nil)
runner.ScheduleScan()
}
return nil
}