colorpicker: force hex color to update on window close

This commit is contained in:
Ron Young
2019-08-05 23:57:32 -05:00
committed by Tomas Slusny
parent 05e85c3e32
commit ac5b2ff82a

View File

@@ -298,6 +298,9 @@ public class RuneliteColorPicker extends JDialog
@Override
public void windowClosing(WindowEvent e)
{
// force update hex color because focus lost events fire after window closing
updateHex();
if (onClose != null)
{
onClose.accept(selectedColor);