mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-21 02:01:24 +00:00
Make "on" attribute on buttons optional
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ab281813bc
commit
81e4f693ae
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
kd := activePage.Keys[evt.Key]
|
kd := activePage.Keys[evt.Key]
|
||||||
if kd.On == "down" && evt.Type == streamdeck.EventTypeDown || kd.On == "up" && evt.Type == streamdeck.EventTypeUp || kd.On == "both" {
|
if kd.On == "down" && evt.Type == streamdeck.EventTypeDown || (kd.On == "up" || kd.On == "") && evt.Type == streamdeck.EventTypeUp || kd.On == "both" {
|
||||||
if err := triggerAction(kd); err != nil {
|
if err := triggerAction(kd); err != nil {
|
||||||
log.WithError(err).Error("Unable to execute action")
|
log.WithError(err).Error("Unable to execute action")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue