From a09b55c81b32776b7924bbac3541e11b69013e72 Mon Sep 17 00:00:00 2001 From: Jan-Peter Klein Date: Mon, 16 Sep 2024 15:39:14 +0200 Subject: [PATCH] triggered updatechecker in constructor --- .../org/cryptomator/ui/mainwindow/MainWindowController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/cryptomator/ui/mainwindow/MainWindowController.java b/src/main/java/org/cryptomator/ui/mainwindow/MainWindowController.java index ae9d796ad..999ff7882 100644 --- a/src/main/java/org/cryptomator/ui/mainwindow/MainWindowController.java +++ b/src/main/java/org/cryptomator/ui/mainwindow/MainWindowController.java @@ -31,7 +31,6 @@ public class MainWindowController implements FxController { private final ReadOnlyObjectProperty selectedVault; private final Settings settings; private final FxApplicationWindows appWindows; - private final UpdateChecker updateChecker; private final BooleanBinding updateAvailable; private final LicenseHolder licenseHolder; @@ -49,15 +48,15 @@ public class MainWindowController implements FxController { this.selectedVault = selectedVault; this.settings = settings; this.appWindows = appWindows; - this.updateChecker = updateChecker; this.updateAvailable = updateChecker.updateAvailableProperty(); this.licenseHolder = licenseHolder; + updateChecker.automaticallyCheckForUpdatesIfEnabled(); + } @FXML public void initialize() { LOG.trace("init MainWindowController"); - updateChecker.automaticallyCheckForUpdatesIfEnabled(); if (SystemUtils.IS_OS_WINDOWS) { root.getStyleClass().add("os-windows");