Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Dec 9, 2018
1 parent 7fb2b05 commit 37c3ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected void getTooltips(List<String> tooltip) {

@Override
protected boolean isIconToggledOn() {
return Config.isBookmarkOverlayEnabled() && !bookmarkList.isEmpty() && bookmarkOverlay.hasRoom();
return bookmarkOverlay.isListDisplayed();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public BookmarkOverlay(BookmarkList bookmarkList, GuiHelper guiHelper, GuiScreen
bookmarkList.addListener(() -> contents.updateLayout(false));
}

private boolean isListDisplayed() {
public boolean isListDisplayed() {
return Config.isBookmarkOverlayEnabled() && hasRoom && !bookmarkList.isEmpty();
}

Expand Down

0 comments on commit 37c3ea7

Please sign in to comment.