dont display completion window if there is no data

This commit is contained in:
bluepilledgreat 2024-10-20 15:51:55 +01:00
parent 3a923e2614
commit 70b7a65080

View File

@ -321,6 +321,9 @@ namespace Bloxstrap.UI.Elements.Editor
{ {
CloseCompletionWindow(); CloseCompletionWindow();
if (!completionData.Any())
return;
_completionWindow = new CompletionWindow(UIXML.TextArea); _completionWindow = new CompletionWindow(UIXML.TextArea);
IList<ICompletionData> data = _completionWindow.CompletionList.CompletionData; IList<ICompletionData> data = _completionWindow.CompletionList.CompletionData;