From aa2ee3f7bebf07d27e824e6a369300e0642fbcaa Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 14 Feb 2017 16:31:11 -0800 Subject: Right and left click both will now open the context menu on Windows --- windows/WinUI/ToolbarItem.xaml | 58 +++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 37 deletions(-) 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 @@ + ToolTipText="ZeroTier One" + MenuActivation="LeftOrRightClick"> - - - + + - - + - - + - - - + - - + + + - - - + - - - - - - - + + + + -- cgit v1.2.3 From de7e8a1ca448ea2077f31514aa4f3d3ee3b5317b Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 14 Feb 2017 16:39:15 -0800 Subject: fix About view on Mac so that it opens links in the system web browser --- macui/ZeroTier One/AboutViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3