Make sure to remove event handler when finished

This commit is contained in:
Travis Nickles 2019-03-23 01:44:03 -05:00
parent 83628f8849
commit 59161a5b62

View File

@ -2570,6 +2570,8 @@ namespace DS4Windows
FlashColor[device] = new DS4Color(advColorDialog.Color); FlashColor[device] = new DS4Color(advColorDialog.Color);
} }
advColorDialog.OnUpdateColor -= advColorDialog_OnUpdateColor;
if (device < 4) if (device < 4)
DS4LightBar.forcelight[device] = false; DS4LightBar.forcelight[device] = false;
} }