Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit 4971a18

Browse files
committed
fix crash from clipboard copy
1 parent ab702a2 commit 4971a18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Main.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public List<Result> Query(Query query)
7373
SubTitle = e.Message,
7474
Action = _ =>
7575
{
76-
Clipboard.SetText(e.Message + "\r\n" + e.StackTrace);
76+
Clipboard.SetDataObject(e.Message + "\r\n" + e.StackTrace);
7777
_context.API.ShowMsg(_context.API.GetTranslation("flowlauncher_plugin_everything_copied"), null, string.Empty);
7878
return false;
7979
},
@@ -328,7 +328,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
328328
Title = _context.API.GetTranslation("flowlauncher_plugin_everything_copy_path"),
329329
Action = (context) =>
330330
{
331-
Clipboard.SetText(record.FullPath);
331+
Clipboard.SetDataObject(record.FullPath);
332332
return true;
333333
},
334334
IcoPath = icoPath

0 commit comments

Comments
 (0)