mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 20:21:27 +00:00
apply more suggestions from code review
This commit is contained in:
@@ -85,9 +85,9 @@ public class UpdateChecker extends ScheduledService<UpdateInfo<?>> {
|
||||
protected void succeeded() {
|
||||
var updateInfo = getValue();
|
||||
super.succeeded(); // this will nil the value property!
|
||||
lastSuccessfulUpdateCheck.set(Instant.now());
|
||||
if (updateInfo != null) {
|
||||
LOG.info("Current version: {}, latest version: {}", getCurrentVersion(), updateInfo.version());
|
||||
lastSuccessfulUpdateCheck.set(Instant.now());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class UpdatesPreferencesController implements FxController {
|
||||
public CheckBox checkForUpdatesCheckbox;
|
||||
|
||||
@Inject
|
||||
UpdatesPreferencesController(Application application, Environment environment, ResourceBundle resourceBundle, Settings settings, UpdateChecker updateChecker, FallbackUpdateMechanism fallbackUpdateMechanism) {
|
||||
UpdatesPreferencesController(Application application, Environment environment, ResourceBundle resourceBundle, Settings settings, UpdateChecker updateChecker) {
|
||||
this.application = application;
|
||||
this.environment = environment;
|
||||
this.resourceBundle = resourceBundle;
|
||||
|
||||
Reference in New Issue
Block a user