summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macui/ZeroTier One/AboutViewController.m3
-rw-r--r--windows/WinUI/ToolbarItem.xaml58
2 files changed, 23 insertions, 38 deletions
diff --git a/macui/ZeroTier One/AboutViewController.m b/macui/ZeroTier One/AboutViewController.m
index 21dceae1..7f92977d 100644
--- a/macui/ZeroTier One/AboutViewController.m
+++ b/macui/ZeroTier One/AboutViewController.m
@@ -32,7 +32,8 @@
[self.webView.layer setCornerRadius:1.0f];
self.webView.layer.masksToBounds = YES;
[self.webView.layer setBorderColor:[[NSColor darkGrayColor] CGColor]];
-
+ self.webView.policyDelegate = self;
+
NSBundle *bundle = [NSBundle mainBundle];
NSURL *path = [bundle URLForResource:@"about" withExtension:@"html"];
if(path) {
diff --git a/windows/WinUI/ToolbarItem.xaml b/windows/WinUI/ToolbarItem.xaml
index 471a1107..3b064fc4 100644
--- a/windows/WinUI/ToolbarItem.xaml
+++ b/windows/WinUI/ToolbarItem.xaml
@@ -20,54 +20,38 @@
<Grid>
<tb:TaskbarIcon x:Name="MyNotifyIcon"
IconSource="ZeroTierIcon.ico"
- ToolTipText="ZeroTier One">
+ ToolTipText="ZeroTier One"
+ MenuActivation="LeftOrRightClick">
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
- <ContextMenu.ItemsSource>
- <CompositeCollection>
- <MenuItem Header="Node ID: unknown"
+ <ContextMenu.ItemsSource>
+ <CompositeCollection>
+ <MenuItem Header="Node ID: unknown"
Click="ToolbarItem_NodeIDClicked"
x:Name="nodeIdMenuItem"/>
- <Separator/>
- <MenuItem Header="Join Network..."
+ <Separator/>
+ <MenuItem Header="Join Network..."
Click="ToolbarItem_JoinNetworkClicked"/>
- <MenuItem Header="Show Networks..."
+ <MenuItem Header="Show Networks..."
Click="ToolbarItem_ShowNetworksClicked"/>
- <Separator/>
+ <Separator/>
- <CollectionContainer Collection="{Binding Source={StaticResource KnownNetworks}}">
-
- </CollectionContainer>
+ <CollectionContainer Collection="{Binding Source={StaticResource KnownNetworks}}">
- <Separator/>
- <MenuItem Header="About..."
+ </CollectionContainer>
+
+ <Separator/>
+ <MenuItem Header="About..."
Click="ToolbarItem_AboutClicked"/>
- <MenuItem Header="Preferences..."
+ <MenuItem Header="Preferences..."
Click="ToolbarItem_PreferencesClicked"/>
- <Separator/>
- <MenuItem Header="Quit"
+ <Separator/>
+ <MenuItem Header="Quit"
Click="ToolbarItem_QuitClicked"/>
-
- </CompositeCollection>
- </ContextMenu.ItemsSource>
-
- <!--<MenuItem Header="Networks">
- <MenuItem.ItemsSource>
- <CompositeCollection>
- <CollectionContainer Collection="{Binding Source={StaticResource KnownNetworks}}"/>
- </CompositeCollection>
- </MenuItem.ItemsSource>
- <MenuItem.ItemContainerStyle>
- <Style>
- <Setter Property="MenuItem.Header" Value="{Binding Title}"/>
- --><!-- <Setter Property="MenuItem.IsCheckable" Value="True"/> --><!--
- <Setter Property="MenuItem.IsChecked" Value="{Binding IsConnected}"/>
- <EventSetter Event="MenuItem.Click" Handler="ToolbarItem_NetworkClicked"/>
- </Style>
- </MenuItem.ItemContainerStyle>
- </MenuItem>-->
-
- </ContextMenu>
+
+ </CompositeCollection>
+ </ContextMenu.ItemsSource>
+ </ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>