File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/cryptomator/linux/update Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ public boolean isSupported() {
4949 }
5050
5151 @ Override
52- public boolean isUpdateAvailable () {
52+ public boolean isUpdateAvailable (String installedVersion ) {
5353 var cdl = new CountDownLatch (1 );
5454 portal .setUpdateCheckerTaskFor (APP_NAME );
5555 var checkTask = portal .getUpdateCheckerTaskFor (APP_NAME );
5656 var updateAvailable = new AtomicBoolean (false );
57- checkTask .setOnSucceeded (latestVersion -> {
58- updateAvailable .set (true ); // TODO: compare version strings before setting this to true
57+ checkTask .setOnSucceeded (updateVersion -> {
58+ updateAvailable .set (UpdateMechanism . isUpdateAvailable ( updateVersion , installedVersion ));
5959 cdl .countDown ();
6060 });
6161 checkTask .setOnFailed (error -> {
You can’t perform that action at this time.
0 commit comments