From 70b7a6508046dd8c45dad960e5c0ccf324d85ab3 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sun, 20 Oct 2024 15:51:55 +0100 Subject: [PATCH] dont display completion window if there is no data --- Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs index 03987ea..69623b7 100644 --- a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs +++ b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs @@ -321,6 +321,9 @@ namespace Bloxstrap.UI.Elements.Editor { CloseCompletionWindow(); + if (!completionData.Any()) + return; + _completionWindow = new CompletionWindow(UIXML.TextArea); IList data = _completionWindow.CompletionList.CompletionData;