mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-03 20:24:24 -04:00
Deactivate notifications on windows (#268)
This commit is contained in:
parent
78a09d874d
commit
d92ab1d310
1 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,10 @@ public class SystemNotification {
|
||||||
private static final Notification.Notifier notifier = NotifierBuilder.create().build();
|
private static final Notification.Notifier notifier = NotifierBuilder.create().build();
|
||||||
|
|
||||||
public static void openInfoNotification(String headline, String message) {
|
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());
|
notifier.notify(NotificationBuilder.create().title(headline).message(message).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue