Invoke loop only for new BGs from active BG source.
This commit is contained in:
parent
ad3bf19e4c
commit
8849df639f
|
@ -159,7 +159,11 @@ public class LoopPlugin implements PluginBase {
|
|||
|
||||
@Subscribe
|
||||
public void onStatusEvent(final EventAutosensCalculationFinished ev) {
|
||||
if (ev.cause instanceof EventNewBG && ((EventNewBG) ev.cause).isNew) {
|
||||
if (!(ev.cause instanceof EventNewBG))
|
||||
return;
|
||||
|
||||
EventNewBG bgEv = (EventNewBG) ev.cause;
|
||||
if (bgEv.isNew && bgEv.isActiveBgSource) {
|
||||
invoke("New BG", true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue