Skip to content

Commit bf317b8

Browse files
committed
Don't copy query if blank
1 parent 2bd164f commit bf317b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ private void OnCopy(object sender, ExecutedRoutedEventArgs e)
6060
}
6161

6262
}
63-
else
63+
else if (!String.IsNullOrEmpty(QueryTextBox.Text))
6464
{
65-
System.Windows.Clipboard.SetDataObject(QueryTextBox.SelectedText;);
65+
System.Windows.Clipboard.SetDataObject(QueryTextBox.SelectedText);
6666
}
6767
e.Handled = true;
6868
}

0 commit comments

Comments
 (0)