Skip to content

Commit f992729

Browse files
committed
Provide CopyText field instead of empty string
1 parent f019bb2 commit f992729

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public MainWindow()
5959

6060
private void OnCopy(object sender, ExecutedRoutedEventArgs e)
6161
{
62-
if (QueryTextBox.SelectionLength == 0)
62+
var result = _viewModel.Results.SelectedItem?.Result;
63+
if (QueryTextBox.SelectionLength == 0 && result != null)
6364
{
64-
_viewModel.ResultCopy(string.Empty);
65+
string copyText = result.CopyText;
66+
_viewModel.ResultCopy(copyText);
6567

6668
}
6769
else if (!string.IsNullOrEmpty(QueryTextBox.Text))

0 commit comments

Comments
 (0)