1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Fix null object exception on Gradient Editor DEL Hotkey

This commit is contained in:
Cheerpipe 2021-03-15 00:27:54 -03:00
parent dddfca2b09
commit a25e234bf6

View File

@ -65,6 +65,9 @@ namespace Artemis.UI.Shared.Screens.GradientEditor
public void RemoveColorStop(ColorStopViewModel colorStopViewModel)
{
if (colorStopViewModel == null)
return;
ColorStopViewModels.Remove(colorStopViewModel);
ColorGradient.Stops.Remove(colorStopViewModel.ColorStop);
ColorGradient.OnColorValuesUpdated();