Skip to content

Commit dfc3887

Browse files
authored
Merge pull request #50 from hansu/49-losing-commit-author-filter-when-you-switch-tabs
fix loosing currentAuthors when switching tabs
2 parents 8ac7686 + 6fd5aa7 commit dfc3887

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

web/main.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
class GitGraphView {
32
private gitRepos: GG.GitRepoSet;
43
private gitBranches: ReadonlyArray<string> = [];
@@ -299,8 +298,6 @@ class GitGraphView {
299298
filterCurrentBranches();
300299

301300
this.saveState();
302-
this.currentAuthors = [];
303-
this.currentAuthors.push(SHOW_ALL_BRANCHES);
304301

305302
// Set up branch dropdown options
306303
this.branchDropdown.setOptions(this.getBranchOptions(true), this.currentBranches);
@@ -1030,7 +1027,6 @@ class GitGraphView {
10301027
private getBranchContextMenuActions(target: DialogTarget & RefTarget): ContextMenuActions {
10311028
const refName = target.ref, visibility = this.config.contextMenuActionsVisibility.branch;
10321029
const isSelectedInBranchesDropdown = this.branchDropdown.isSelected(refName);
1033-
// const isSelectedInBranchesDropdown = this.authorDropdown.isSelected(refName);
10341030

10351031
return [[
10361032
{
@@ -2055,7 +2051,6 @@ class GitGraphView {
20552051
this.repoDropdown.refresh();
20562052
this.branchDropdown.refresh();
20572053
this.authorDropdown.refresh();
2058-
20592054
}
20602055
if (fmc !== findMatchColour) {
20612056
findMatchColour = fmc;

0 commit comments

Comments
 (0)