Data bindings - Fix crash when removing color gradient stops

This commit is contained in:
Robert committed 2021-03-15 19:24:35 +01:00
1 parent 91ad9b7bae
commit eaa1f15ac3
5 files changed
+27 -2

No files matched your search

@@ -295,7 +295,7 @@ namespace Artemis.UI.Shared
{
Execute.PostToUIThread(SetupForDevice);
}
private void Render()
{
DrawingContext drawingContext = _backingStore.Open();
@@ -51,7 +51,6 @@ namespace Artemis.UI.Shared
byte g = Led.RgbLed.Color.GetG();
byte b = Led.RgbLed.Color.GetB();
_renderColor.A = (byte) (isDimmed ? 100 : 255);
_renderColor.A = isDimmed ? Dimmed : NonDimmed;
_renderColor.R = r;
_renderColor.G = g;