triggered updatechecker in constructor

This commit is contained in:
Jan-Peter Klein 2024-09-16 15:39:14 +02:00
parent 958c22bed8
commit a09b55c81b
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -31,7 +31,6 @@ public class MainWindowController implements FxController {
private final ReadOnlyObjectProperty<Vault> 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");