From 2c456f532346b78c9d1bf747a004caf838b7075c Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 5 Dec 2025 11:58:16 +0100 Subject: [PATCH] fix more issues Signed-off-by: Armin Schrenk --- .../java/org/cryptomator/event/NotificationManager.java | 2 +- .../cryptomator/ui/notification/NotificationController.java | 2 +- .../org/cryptomator/ui/notification/NotificationModule.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/cryptomator/event/NotificationManager.java b/src/main/java/org/cryptomator/event/NotificationManager.java index 190d33df4..122758c7b 100644 --- a/src/main/java/org/cryptomator/event/NotificationManager.java +++ b/src/main/java/org/cryptomator/event/NotificationManager.java @@ -36,7 +36,7 @@ public class NotificationManager { eventCache = Caffeine.newBuilder().expireAfterWrite(Duration.ofSeconds(DEBOUNCE_THRESHOLD_SECONDS)).build(); eventsRequiringNotification = new ConcurrentLinkedQueue<>(); } - + /** * Offers the given filesystem event to the notification manager. * diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationController.java b/src/main/java/org/cryptomator/ui/notification/NotificationController.java index e93d1863e..1b6506c11 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationController.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationController.java @@ -139,7 +139,7 @@ public class NotificationController implements FxController { } public ObservableBooleanValue buttonVisibleProperty() { - return actionText.isEmpty(); + return actionText.isEmpty().not(); } public boolean isButtonVisible() { diff --git a/src/main/java/org/cryptomator/ui/notification/NotificationModule.java b/src/main/java/org/cryptomator/ui/notification/NotificationModule.java index 68508f8b6..a8664a0ba 100644 --- a/src/main/java/org/cryptomator/ui/notification/NotificationModule.java +++ b/src/main/java/org/cryptomator/ui/notification/NotificationModule.java @@ -47,12 +47,12 @@ abstract class NotificationModule { } else if(SystemUtils.IS_OS_MAC) { //place to right top var screenBounds = Screen.getPrimary().getVisualBounds(); //TODO: TEST window.setX(screenBounds.getMaxX() - window.getWidth()); - window.setY(screenBounds.getMinY() - window.getHeight()); + window.setY(screenBounds.getMinY()); } else { //place to middle top //GNOME; KDE; etc... var screenBounds = Screen.getPrimary().getVisualBounds(); //TODO: TEST - window.setX(screenBounds.getMaxX() / 2.0); - window.setY(screenBounds.getMinY() - window.getHeight()); + window.setX(screenBounds.getMinX() + (screenBounds.getWidth() - window.getWidth()) / 2.0); + window.setY(screenBounds.getMinY()); } }