From 6d62816bd4bb2f520c88082a54e378f4e044cbb4 Mon Sep 17 00:00:00 2001 From: Christoffer Olofsson <15955091+ChrisAcrobat@users.noreply.github.com> Date: Sun, 7 Apr 2019 03:42:14 +0200 Subject: [PATCH] Fixed update checker. --- src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java b/src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java index abf8424..078f2d7 100644 --- a/src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java +++ b/src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java @@ -12,7 +12,7 @@ public class UpdateChecker extends Thread implements Runnable { - final private String CURRENT_RELEASE = "v0.2"; + final private String CURRENT_RELEASE = "v0.2.1"; final private JMenuBar JMENU_BAR; final private String LATEST_RELEASE_URL = "https://github.com/ChrisAcrobat/Wolfpack-Live-Cipherer/releases/latest/"; @@ -24,7 +24,7 @@ public UpdateChecker(JMenuBar jMenuBar){ @Override public void run(){ String latestVersion = getLatestVersion(); - if(CURRENT_RELEASE != latestVersion){ + if(!CURRENT_RELEASE.equals(latestVersion)){ // Add link to update JMenu link = new JMenu("New update is available!"); link.setForeground(new Color(0x28, 0xA7, 0x45));