mat1jaczyyy / apollo-studio

Apollo Studio is a standalone editor and live playback engine for RGB Launchpad light effects.
https://apollo.mat1jaczyyy.com
BSD 3-Clause "New" or "Revised" License
186 stars 23 forks source link

FadeViewer: UI regenerate runs on current thread instead of UI thread #462

Closed mat1jaczyyy closed 1 year ago

mat1jaczyyy commented 1 year ago

https://github.com/mat1jaczyyy/apollo-studio/blob/d7ccf3b50932b9a050309acf01bbaa21bab58dda/Apollo/DeviceViewers/FadeViewer.cs#L282-L290

An attempt was made, but we try get Gradient.Fill on current thread instead of UI thread which isn't good.

This code can be called by Generate in Fade.cs which can be called by BPM change from Ableton Connector which is not on the UI thread.

Ty AlexayForest for report