1
0
Fork 0
mirror of https://github.com/Luzifer/streamdeck.git synced 2024-12-20 17:51:21 +00:00

Do not apply image if it was cancelled

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-11-22 21:02:06 +01:00
parent 6bbb7dce11
commit 8fafd39221
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -135,6 +135,10 @@ func (d displayElementExec) Display(idx int, attributes map[string]interface{})
}
}
if !d.running && d.NeedsLoop(attributes) {
return nil
}
return errors.Wrap(sd.FillImage(idx, img), "Unable to set image")
}