colorpicker: force hex color to update on window close
This commit is contained in:
@@ -298,6 +298,9 @@ public class RuneliteColorPicker extends JDialog
|
|||||||
@Override
|
@Override
|
||||||
public void windowClosing(WindowEvent e)
|
public void windowClosing(WindowEvent e)
|
||||||
{
|
{
|
||||||
|
// force update hex color because focus lost events fire after window closing
|
||||||
|
updateHex();
|
||||||
|
|
||||||
if (onClose != null)
|
if (onClose != null)
|
||||||
{
|
{
|
||||||
onClose.accept(selectedColor);
|
onClose.accept(selectedColor);
|
||||||
|
|||||||
Reference in New Issue
Block a user