mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 16:13:55 +00:00
I guess there's a bug in Clipboard.SetText(). Clipboard.SetDataObject() works, though.
This commit is contained in:
parent
e9b956ed71
commit
2fac693243
@ -111,14 +111,19 @@ namespace WinUI
|
|||||||
|
|
||||||
private void ToolbarItem_NodeIDClicked(object sender, System.Windows.RoutedEventArgs e)
|
private void ToolbarItem_NodeIDClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Clipboard.SetText(nodeId);
|
Clipboard.SetDataObject(nodeId);
|
||||||
}
|
}
|
||||||
catch (ArgumentNullException)
|
catch (ArgumentNullException)
|
||||||
{
|
{
|
||||||
// tried to copy a null nodeId
|
// tried to copy a null nodeId
|
||||||
}
|
Console.WriteLine("ArgumentNullException");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine(ex.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ToolbarItem_ShowNetworksClicked(object sender, System.Windows.RoutedEventArgs e)
|
private void ToolbarItem_ShowNetworksClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user