mirror of
https://github.com/cryptomator/cryptomator.git
synced 2024-11-23 03:59:51 +00:00
removed twoWeeksAgo var
This commit is contained in:
parent
6fec16e498
commit
a81352800d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user