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

Commit

Permalink
Removed duplicate PROJECTS category item from autocomplete (win), closes
Browse files Browse the repository at this point in the history
 #2345
  • Loading branch information
IndrekV committed Aug 22, 2018
1 parent ea27328 commit 083405a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public void FillList(ListBox listBox, Action<AutoCompleteItem> selectWithClick,
});
noProjectAdded = true;
}
lastType = (int)it.Item.Type;
}

// Add client item if needed
Expand Down Expand Up @@ -193,7 +194,6 @@ public void FillList(ListBox listBox, Action<AutoCompleteItem> selectWithClick,
WorkspaceName = it.Item.WorkspaceName,
Index = count
});
lastType = (int)it.Item.Type;
}
}
visibleItems = items;
Expand Down Expand Up @@ -246,6 +246,7 @@ public void Complete(string input)
Category = categories[(int)item.Type],
Type = -1
});
lastType = (int)item.Type;
}

// Add client item if needed
Expand Down Expand Up @@ -282,7 +283,6 @@ public void Complete(string input)
}

filteredItems.Add(item);
lastType = (int)item.Type;
lastProjectLabel = item.ProjectLabel;
}
}
Expand Down

0 comments on commit 083405a

Please sign in to comment.