From d92ab1d310f94398dea8937e19b4044254d07070 Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Tue, 11 Nov 2014 02:07:45 +0100 Subject: [PATCH] Deactivate notifications on windows (#268) --- .../io/bitsquare/gui/components/SystemNotification.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/bitsquare/gui/components/SystemNotification.java b/src/main/java/io/bitsquare/gui/components/SystemNotification.java index 16f72abed0..3b3712e7d0 100644 --- a/src/main/java/io/bitsquare/gui/components/SystemNotification.java +++ b/src/main/java/io/bitsquare/gui/components/SystemNotification.java @@ -32,7 +32,10 @@ public class SystemNotification { private static final Notification.Notifier notifier = NotifierBuilder.create().build(); public static void openInfoNotification(String headline, String message) { - notifier.notify(NotificationBuilder.create().title(headline).message(message).build()); + // 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()); } - }