-
Hello, I have a problem that when I set image and text with code, values disappear when I restart the app or computer (ofc). PI
Plugin (app.js)
Do I need to handle icon and text, set by code somehow at launch? In that case in which event? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Muhomorik, That is correct, user set icons and titles are retained on restart, but icons and titles provided by the plugin will need to be set again. There are a few events that can help with this: https://docs.elgato.com/sdk/plugins/events-received#willappear The SDK also provides a All of these could work to help keep the key icon and title up to date. |
Beta Was this translation helpful? Give feedback.
Hi @Muhomorik,
That is correct, user set icons and titles are retained on restart, but icons and titles provided by the plugin will need to be set again. There are a few events that can help with this:
willAppear
on the action (this is typically where I handle drawing things) orsystemDidWakeUp
from Stream Deck.https://docs.elgato.com/sdk/plugins/events-received#willappear
https://docs.elgato.com/sdk/plugins/events-received#systemdidwakeup
The SDK also provides a
connected
event that is sent when the plugin opens the websocket connection to Stream Deck.All of these could work to help keep the key icon and title up to date.