Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Hide bookmarks/history when selecting a different tab
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Nov 7, 2019
1 parent 3a5a1bc commit c6c1c30
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,14 @@ public void switchHistory() {
}
}

private void hideLibraryPanels() {
if (isBookmarksVisible()) {
hideBookmarks();
} else if (isHistoryVisible()) {
hideHistory();
}
}

public void showHistory() {
showHistory(true);
}
Expand Down Expand Up @@ -1033,6 +1041,9 @@ public void setSession(@NonNull Session aSession) {
for (WindowListener listener: mListeners) {
listener.onSessionChanged(oldSession, aSession);
}

hideLibraryPanels();

}
}

Expand Down

0 comments on commit c6c1c30

Please sign in to comment.