From bf317b8caa1b837dd54ffb2b13095c7bdda30992 Mon Sep 17 00:00:00 2001 From: Garulf <535299+Garulf@users.noreply.github.com> Date: Thu, 2 Dec 2021 04:46:26 -0500 Subject: [PATCH] Don't copy query if blank --- Flow.Launcher/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index ebc3dc874..1afb2848f 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -60,9 +60,9 @@ namespace Flow.Launcher } } - else + else if (!String.IsNullOrEmpty(QueryTextBox.Text)) { - System.Windows.Clipboard.SetDataObject(QueryTextBox.SelectedText;); + System.Windows.Clipboard.SetDataObject(QueryTextBox.SelectedText); } e.Handled = true; }