Skip to content

Commit

Permalink
Display "You are running the latest version" message in About dialog
Browse files Browse the repository at this point in the history
Display "You are running the latest version" message in About dialog if the user is using the latest version.
  • Loading branch information
ashitsalesforce committed Oct 29, 2023
1 parent 36f1461 commit 7f38f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,14 @@ public void run() {
}

private String getLoaderUpgradeMessage() {
String upgradeMsg = "";
String upgradeMsg = Labels.getString("HelpUIAction.latestVersion");
if (!AppUtil.DATALOADER_VERSION.equals(AppUtil.getLatestDownloadableDataLoaderVersion())) {
upgradeMsg =
Labels.getFormattedString("LoaderDownloadDialog.messageLineOne",
new String[] {AppUtil.getLatestDownloadableDataLoaderVersion(),
AppUtil.DATALOADER_DOWNLOAD_URL})
+ System.getProperty("line.separator")
+ System.getProperty("line.separator");
AppUtil.DATALOADER_DOWNLOAD_URL});
}
upgradeMsg += System.getProperty("line.separator") + System.getProperty("line.separator");
return upgradeMsg;
}

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/labels.properties
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ HelpUIAction.dlgLinkText=<a href="http://www.salesforce.com/us/developer/docs/da
HelpUIAction.dlgURL=
HelpUIAction.msgHeader=${project.name} v${project.version}
HelpUIAction.tooltip=About ${project.name}
HelpUIAction.latestVersion=You are running the latest version
LogoutUIAction.text=Logout
update.UIAction.menuText=&Update@Ctrl+U
Expand Down

0 comments on commit 7f38f60

Please sign in to comment.