Share current song by double click

This commit is contained in:
2021-10-04 20:01:50 +02:00
parent 6e4ed82211
commit 62a3220f7f
2 changed files with 12 additions and 1 deletions

View File

@ -266,6 +266,17 @@ namespace unison
hk.Activate(this);
}
private void MouseDownClipboard(object sender, MouseButtonEventArgs e)
{
if (e.ClickCount == 2)
{
string CopyText = SongTitle.Text + " - " + SongArtist.Text + "\n";
CopyText += SongAlbum.Text + "\n";
CopyText += SongTitle.ToolTip;
Clipboard.SetText(CopyText);
}
}
public void InitHwnd()
{
WindowInteropHelper helper = new(this);