From 0f05f5f1d20aaf0a9bdc117bcce73f2bdd83147f Mon Sep 17 00:00:00 2001 From: Daniel Gyoerffy <49782833+Dansoftowner@users.noreply.github.com> Date: Mon, 19 Apr 2021 10:01:51 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c29bd07..3df3d50 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ detector.registerListener(isDark -> { } else { // The OS switched to a light theme } - }) + }); }); ``` It's important because if you are doing JavaFX specific stuff in the listener, you should execute it on the `JavaFX Application Thread`.