fix more issues

Signed-off-by: Armin Schrenk <armin.schrenk@skymatic.de>
This commit is contained in:
Armin Schrenk
2025-12-05 11:58:16 +01:00
parent 9d464e3a4f
commit 2c456f5323
3 changed files with 5 additions and 5 deletions

View File

@@ -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.
*

View File

@@ -139,7 +139,7 @@ public class NotificationController implements FxController {
}
public ObservableBooleanValue buttonVisibleProperty() {
return actionText.isEmpty();
return actionText.isEmpty().not();
}
public boolean isButtonVisible() {

View File

@@ -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());
}
}