Skip to content

Commit 702a151

Browse files
authored
Add clipboard function
1 parent 365f7e7 commit 702a151

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public void ShellRun(string cmd, string filename = "cmd.exe")
114114
var startInfo = ShellCommand.SetProcessStartInfo(filename, arguments: args, createNoWindow: true);
115115
ShellCommand.Execute(startInfo);
116116
}
117+
118+
public void CopyToClipboard(string text)
119+
{
120+
Clipboard.SetText(text);
121+
}
117122

118123
public void StartLoadingBar() => _mainVM.ProgressBarVisibility = Visibility.Visible;
119124

@@ -222,4 +227,4 @@ private bool KListener_hookedKeyboardCallback(KeyEvent keyevent, int vkcode, Spe
222227

223228
#endregion
224229
}
225-
}
230+
}

0 commit comments

Comments
 (0)