Skip to content

Commit

Permalink
Fixed update checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAcrobat committed Apr 7, 2019
1 parent 859e524 commit 6d62816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/se/olofsson/wolfpack/livecipherer/UpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand All @@ -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));
Expand Down

0 comments on commit 6d62816

Please sign in to comment.