From c49733b2bed6ab9ed114e5d7ae3c7228fc9d1dd4 Mon Sep 17 00:00:00 2001 From: renatoathaydes Date: Sun, 26 Apr 2020 17:52:45 +0200 Subject: [PATCH] Do not try to set tray icon if not on Mac. All other OSs use the standard icons for the tray. --- src/main/java/com/athaydes/logfx/LogFX.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/athaydes/logfx/LogFX.java b/src/main/java/com/athaydes/logfx/LogFX.java index 7656ee21..b238e312 100644 --- a/src/main/java/com/athaydes/logfx/LogFX.java +++ b/src/main/java/com/athaydes/logfx/LogFX.java @@ -416,7 +416,9 @@ public static HostServices hostServices() { } public static void main( String[] args ) { - SetupTrayIcon.run(); + if ( FxUtils.isMac() ) { + SetupTrayIcon.run(); + } Font.loadFont( FxUtils.resourcePath( "fonts/themify-1.0.1.ttf" ), 12 );