dustinkredmond / FXTrayIcon

Tray Icon implementation for JavaFX applications. Say goodbye to using AWT's SystemTray icon, instead use a JavaFX Tray Icon.
MIT License
327 stars 26 forks source link

Aded overloaded build method for addExitMenuItem #44

Closed EasyG0ing1 closed 2 years ago

EasyG0ing1 commented 2 years ago

This is an easy one ... I just added one overloaded method in the Builder for addExitMenuItem to provide the option of setting a custom label to the exit menuItem. I also updated the exit menu method itself so that it uses these calls to exit the app:

Platform.setImplicitExit(true); Platform.exit();

And I also updated the implementation of that menuItem to check for the custom label and use it if it was set in the Builder.

I just wanted to get this one out of the way - ill start working on the other issue next.

dustinkredmond commented 2 years ago

Looks good, thank you! Merging, hoping to push a release this weekend.