mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Deactivate notifications on windows (#268)
This commit is contained in:
parent
78a09d874d
commit
d92ab1d310
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user