mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Provide CopyText field instead of empty string
This commit is contained in:
parent
f019bb2284
commit
f992729147
1 changed files with 4 additions and 2 deletions
|
|
@ -59,9 +59,11 @@ namespace Flow.Launcher
|
|||
|
||||
private void OnCopy(object sender, ExecutedRoutedEventArgs e)
|
||||
{
|
||||
if (QueryTextBox.SelectionLength == 0)
|
||||
var result = _viewModel.Results.SelectedItem?.Result;
|
||||
if (QueryTextBox.SelectionLength == 0 && result != null)
|
||||
{
|
||||
_viewModel.ResultCopy(string.Empty);
|
||||
string copyText = result.CopyText;
|
||||
_viewModel.ResultCopy(copyText);
|
||||
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(QueryTextBox.Text))
|
||||
|
|
|
|||
Loading…
Reference in a new issue