From 083405a019160bb5f56f0e392df07ecea1d900db Mon Sep 17 00:00:00 2001 From: IndrekV Date: Wed, 22 Aug 2018 18:04:42 +1000 Subject: [PATCH] Removed duplicate PROJECTS category item from autocomplete (win), closes #2345 --- .../TogglDesktop/AutoCompletion/AutoCompleteController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs b/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs index adadf95ecf..f8fb57eb54 100644 --- a/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs +++ b/src/ui/windows/TogglDesktop/TogglDesktop/AutoCompletion/AutoCompleteController.cs @@ -151,6 +151,7 @@ public void FillList(ListBox listBox, Action selectWithClick, }); noProjectAdded = true; } + lastType = (int)it.Item.Type; } // Add client item if needed @@ -193,7 +194,6 @@ public void FillList(ListBox listBox, Action selectWithClick, WorkspaceName = it.Item.WorkspaceName, Index = count }); - lastType = (int)it.Item.Type; } } visibleItems = items; @@ -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 @@ -282,7 +283,6 @@ public void Complete(string input) } filteredItems.Add(item); - lastType = (int)item.Type; lastProjectLabel = item.ProjectLabel; } }