Fix scanner notification bug
where notifications would not be sent
This commit is contained in:
parent
2a58f0b5ab
commit
c8d02392f2
|
@ -95,7 +95,7 @@ class PhotoScanner {
|
||||||
return prev
|
return prev
|
||||||
}, 0)
|
}, 0)
|
||||||
|
|
||||||
this.broadcastProgress = _.debounce(() => {
|
this.broadcastProgress = _.throttle(() => {
|
||||||
if (!this.isRunning) return
|
if (!this.isRunning) return
|
||||||
if (Object.keys(this.imageProgress).length == 0) return
|
if (Object.keys(this.imageProgress).length == 0) return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue