You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/actions/button.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
importStreamDeck,{
1
+
import{
2
2
KeyDownEvent,
3
3
KeyUpEvent,
4
4
WillAppearEvent,
@@ -309,18 +309,18 @@ export class Button extends Action {
309
309
this.#lastTitle[context]=title
310
310
311
311
if(!this.#flashing[context])
312
-
awaitStreamDeck.client.setTitle(context,title).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck title of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
312
+
awaitthis.actionObjects.get(context)?.setTitle(title).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck title of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
313
313
}
314
314
315
315
asyncsetImage(context: string,image?: string){
316
316
this.#lastImage[context]=image
317
317
318
318
if(!this.#flashing[context])
319
-
awaitStreamDeck.client.setImage(context,image).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck image of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
319
+
awaitthis.actionObjects.get(context)?.setImage(image).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck image of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
320
320
}
321
321
322
322
asyncsetState(context: string,state: any){
323
-
awaitStreamDeck.client.setState(context,state).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck state of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
323
+
awaitthis.actionObjects.get(context)?.setState(state).catch((e: any)=>logger.error(`An error occurred while setting the Stream Deck state of "${this.manifestId}": "${e.message||'No message.'}" @ "${e.stack||'No stack trace.'}".`))
0 commit comments