All assistants now have a button to copy their respective result to the clipboard (#86)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-23 08:59:30 +02:00
1 parent 18718a6c47
commit 3409872090
5 files changed
+16 -4

No files matched your search

@@ -26,10 +26,11 @@ public partial class AssistantRewriteImprove : AssistantBaseCore
protected override bool ShowResult => false;
protected override bool ShowDedicatedProgress => true;
protected override Func<string> Result2Copy => () => this.rewrittenText;
protected override IReadOnlyList<IButtonData> FooterButtons =>
[
new ButtonData("Copy result", Icons.Material.Filled.ContentCopy, Color.Default, string.Empty, () => this.CopyToClipboard(this.rewrittenText)),
new SendToButton
{
Self = SendTo.REWRITE_ASSISTANT,