mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-20 09:41:19 +00:00
Fix broken actions after config format change
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
74979e2672
commit
205d8110d0
1 changed files with 2 additions and 2 deletions
|
@ -167,11 +167,11 @@ func main() {
|
|||
offTimer.Reset(userConfig.DisplayOffTime)
|
||||
}
|
||||
|
||||
if evt.Key >= len(activePage.Keys) {
|
||||
kd, ok := activePage.Keys[evt.Key]
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
||||
kd := activePage.Keys[evt.Key]
|
||||
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 {
|
||||
log.WithError(err).Error("Unable to execute action")
|
||||
|
|
Loading…
Reference in a new issue