mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 12:03:44 +02:00
I guess there's a bug in Clipboard.SetText(). Clipboard.SetDataObject() works, though.
This commit is contained in:
parent
e9b956ed71
commit
2fac693243
1 changed files with 13 additions and 8 deletions
|
@ -113,11 +113,16 @@ namespace WinUI
|
|||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(nodeId);
|
||||
Clipboard.SetDataObject(nodeId);
|
||||
}
|
||||
catch (ArgumentNullException)
|
||||
{
|
||||
// tried to copy a null nodeId
|
||||
Console.WriteLine("ArgumentNullException");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue