emorydunn / StreamDeckPlugin

A library for creating Stream Deck plugins in Swift.
https://emorydunn.github.io/StreamDeckPlugin/
MIT License
50 stars 7 forks source link

Setting an Image in the Bundle Doesn't Pass State #12

Closed emorydunn closed 1 year ago

emorydunn commented 1 year ago

The method, Action.setImage(toImage:withExtension:subdirectory:target:state:) has parameters for target and state but these aren't used when calling the the final setImage(to:target:state:).

Passing in nil for the image also results in unexpected behavior, with url(forResource:withExtension:subdirectory:) returning the first image found rather than resetting the icon like other methods.