Skip to content

Commit

Permalink
colorpicker: force hex color to update on window close
Browse files Browse the repository at this point in the history
  • Loading branch information
raiyni authored and deathbeam committed Aug 13, 2019
1 parent 05e85c3 commit ac5b2ff
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ public void focusLost(FocusEvent e)
@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);
Expand Down

0 comments on commit ac5b2ff

Please sign in to comment.