mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-22 04:31:27 +00:00
fix more issues
Signed-off-by: Armin Schrenk <armin.schrenk@skymatic.de>
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -139,7 +139,7 @@ public class NotificationController implements FxController {
|
||||
}
|
||||
|
||||
public ObservableBooleanValue buttonVisibleProperty() {
|
||||
return actionText.isEmpty();
|
||||
return actionText.isEmpty().not();
|
||||
}
|
||||
|
||||
public boolean isButtonVisible() {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user