removed twoWeeksAgo var

This commit is contained in:
Jan-Peter Klein 2024-05-08 11:38:23 +02:00
parent 6fec16e498
commit a81352800d
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -25,8 +25,7 @@ public interface UpdateReminderComponent {
default void checkAndShowUpdateReminderWindow() {
var now = Instant.now();
var twoWeeksAgo = now.minus(Duration.ofDays(14));
if (!settings().checkForUpdates.getValue() && settings().lastSuccessfulUpdateCheck.get().isBefore(twoWeeksAgo)) {
if (!settings().checkForUpdates.getValue() && settings().lastSuccessfulUpdateCheck.get().isBefore(now.minus(Duration.ofDays(14)))) {
Stage stage = window();
stage.setScene(updateReminderScene().get());
stage.sizeToScene();