mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
lib/model: Trigger a pull when ignore patterns change
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4532
This commit is contained in:
parent
8078babf0a
commit
0901350087
@ -50,8 +50,6 @@ func (f *folder) DelayScan(next time.Duration) {
|
|||||||
f.scan.Delay(next)
|
f.scan.Delay(next)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *folder) IndexUpdated() {}
|
|
||||||
|
|
||||||
func (f *folder) IgnoresUpdated() {
|
func (f *folder) IgnoresUpdated() {
|
||||||
if f.FSWatcherEnabled {
|
if f.FSWatcherEnabled {
|
||||||
f.scheduleWatchRestart()
|
f.scheduleWatchRestart()
|
||||||
|
@ -47,9 +47,8 @@ const (
|
|||||||
type service interface {
|
type service interface {
|
||||||
BringToFront(string)
|
BringToFront(string)
|
||||||
DelayScan(d time.Duration)
|
DelayScan(d time.Duration)
|
||||||
IndexUpdated() // Remote index was updated notification
|
|
||||||
IgnoresUpdated() // ignore matcher was updated notification
|
IgnoresUpdated() // ignore matcher was updated notification
|
||||||
SchedulePull()
|
SchedulePull() // something relevant changed, we should try a pull
|
||||||
Jobs() ([]string, []string) // In progress, Queued
|
Jobs() ([]string, []string) // In progress, Queued
|
||||||
Scan(subs []string) error
|
Scan(subs []string) error
|
||||||
Serve()
|
Serve()
|
||||||
|
@ -1728,7 +1728,7 @@ func (f *sendReceiveFolder) basePause() time.Duration {
|
|||||||
|
|
||||||
func (f *sendReceiveFolder) IgnoresUpdated() {
|
func (f *sendReceiveFolder) IgnoresUpdated() {
|
||||||
f.folder.IgnoresUpdated()
|
f.folder.IgnoresUpdated()
|
||||||
f.IndexUpdated()
|
f.SchedulePull()
|
||||||
}
|
}
|
||||||
|
|
||||||
// A []fileError is sent as part of an event and will be JSON serialized.
|
// A []fileError is sent as part of an event and will be JSON serialized.
|
||||||
|
Loading…
Reference in New Issue
Block a user