Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
Fixed version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob van Mourik committed Feb 4, 2017
1 parent 127b325 commit f60d12c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/main/java/com/jvms/i18neditor/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,10 @@ public void showVersionDialog(boolean newVersionOnly) {
} catch (InterruptedException | ExecutionException | TimeoutException e) {
data = null;
}
if (data != null && !VERSION.equals(data.getTagName())) {
if (data != null && VERSION.compareToIgnoreCase(data.getTagName()) < 0) {
content = MessageBundle.get("dialogs.version.new") + " " +
"<strong>" + data.getTagName() + "</strong><br>" +
"<a href=\"" + data.getHtmlUrl() + "\">" +
MessageBundle.get("dialogs.version.link") +
"</a>";
"<a href=\"" + data.getHtmlUrl() + "\">" + MessageBundle.get("dialogs.version.link") + "</a>";
} else if (!newVersionOnly) {
content = MessageBundle.get("dialogs.version.uptodate");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private void setupUI() {
helpMenu.setMnemonic(MessageBundle.getMnemonic("menu.help.vk"));

JMenuItem versionMenuItem = new JMenuItem(MessageBundle.get("menu.help.version.title"));
versionMenuItem.addActionListener(e -> editor.showVersionDialog(true));
versionMenuItem.addActionListener(e -> editor.showVersionDialog(false));

JMenuItem aboutMenuItem = new JMenuItem(MessageBundle.get("menu.help.about.title", Editor.TITLE));
aboutMenuItem.addActionListener(e -> editor.showAboutDialog());
Expand Down

0 comments on commit f60d12c

Please sign in to comment.