Deactivate notifications on windows (#268)

This commit is contained in:
Manfred Karrer 2014-11-11 02:07:45 +01:00
parent 78a09d874d
commit d92ab1d310

View File

@ -32,7 +32,10 @@ public class SystemNotification {
private static final Notification.Notifier notifier = NotifierBuilder.create().build();
public static void openInfoNotification(String headline, String message) {
// On windows it causes problems with the hidden stage used in the hansolo Notification implementation
// Lets deactivate it for the moment and fix that with a more native-like or real native solution later.
String os = System.getProperty("os.name").toLowerCase();
if (!os.contains("win"))
notifier.notify(NotificationBuilder.create().title(headline).message(message).build());
}
}