Skip to content

Commit

Permalink
Do not try to set tray icon if not on Mac.
Browse files Browse the repository at this point in the history
All other OSs use the standard icons for the tray.
  • Loading branch information
renatoathaydes committed Apr 26, 2020
1 parent 5b1c86d commit c49733b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/athaydes/logfx/LogFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit c49733b

Please sign in to comment.