mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Swallow a possible ArgumentNullException when copying text to the system clipboard
This commit is contained in:
parent
236a952458
commit
e9b956ed71
1 changed files with 8 additions and 1 deletions
|
@ -110,9 +110,16 @@ namespace WinUI
|
|||
}
|
||||
|
||||
private void ToolbarItem_NodeIDClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(nodeId);
|
||||
}
|
||||
catch (ArgumentNullException)
|
||||
{
|
||||
// tried to copy a null nodeId
|
||||
}
|
||||
}
|
||||
|
||||
private void ToolbarItem_ShowNetworksClicked(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue