mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-21 02:01:24 +00:00
Do not apply image if it was cancelled
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6bbb7dce11
commit
8fafd39221
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
return errors.Wrap(sd.FillImage(idx, img), "Unable to set image")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue