Skip to content

Commit

Permalink
Fix default bookmark name.
Browse files Browse the repository at this point in the history
Former-commit-id: 6e4dd6cc0e10a97bdee41d20d453465a0f69e984
  • Loading branch information
dkocher committed May 8, 2017
1 parent 95fb603 commit f40f97d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Expand Up @@ -32,6 +32,9 @@ public static String toString(final Host bookmark) {

public static String toString(final Host bookmark, final boolean username) {
if(StringUtils.isEmpty(bookmark.getNickname())) {
if(StringUtils.equals(bookmark.getHostname(), bookmark.getProtocol().getDefaultHostname())) {
return bookmark.getProtocol().getName();
}
if(StringUtils.isBlank(bookmark.getHostname())) {
return bookmark.getProtocol().getName();
}
Expand Down
Expand Up @@ -27,6 +27,11 @@ public String getIdentifier() {
return "dropbox";
}

@Override
public String getName() {
return "Dropbox";
}

@Override
public String getDescription() {
return "Dropbox";
Expand Down
Expand Up @@ -28,6 +28,11 @@ public String getIdentifier() {

@Override
public String getDescription() {
return "Microsoft OneDrive";
}

@Override
public String getName() {
return "OneDrive";
}

Expand Down

0 comments on commit f40f97d

Please sign in to comment.