From 917cacb18b5ae494d6c838fa730ddb7c1944db1a Mon Sep 17 00:00:00 2001 From: FelixSe Date: Sat, 31 Aug 2019 14:31:22 +0200 Subject: [PATCH] Fixed notification not showing when copying text with selection fixes #442 --- FluentTerminal.App.ViewModels/TerminalViewModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FluentTerminal.App.ViewModels/TerminalViewModel.cs b/FluentTerminal.App.ViewModels/TerminalViewModel.cs index da5f577..356531b 100644 --- a/FluentTerminal.App.ViewModels/TerminalViewModel.cs +++ b/FluentTerminal.App.ViewModels/TerminalViewModel.cs @@ -368,6 +368,10 @@ namespace FluentTerminal.App.ViewModels public void CopyText(string text) { ClipboardService.SetText(text); + if (_terminalOptions.ShowTextCopied) + { + Overlay.Show(I18N.Translate("TextCopied")); + } } public async Task EditTitle() @@ -521,11 +525,7 @@ namespace FluentTerminal.App.ViewModels case nameof(Command.Copy): { var selection = await Terminal.GetSelectedText().ConfigureAwait(true); - ClipboardService.SetText(selection); - if(_terminalOptions.ShowTextCopied) - { - Overlay.Show(I18N.Translate("TextCopied")); - } + CopyText(selection); break; } case nameof(Command.Paste):