mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-02 03:06:40 +00:00
Replace '_' with '__' in network names on toolbar menu in Windows
Otherwise WPF gobbles up the underscores
This commit is contained in:
parent
12a6a2f2d2
commit
c53d140145
@ -108,7 +108,7 @@ namespace WinUI
|
|||||||
foreach (ZeroTierNetwork n in networks)
|
foreach (ZeroTierNetwork n in networks)
|
||||||
{
|
{
|
||||||
MenuItem item = new MenuItem();
|
MenuItem item = new MenuItem();
|
||||||
item.Header = n.Title;
|
item.Header = n.Title.Replace("_", "__");
|
||||||
item.DataContext = n;
|
item.DataContext = n;
|
||||||
item.IsChecked = n.IsConnected;
|
item.IsChecked = n.IsConnected;
|
||||||
item.Click += ToolbarItem_NetworkClicked;
|
item.Click += ToolbarItem_NetworkClicked;
|
||||||
|
Loading…
Reference in New Issue
Block a user