summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2016-10-17 13:43:44 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2016-10-17 13:43:44 -0700
commitf444da80bcafc7ded1395a0c5349e991fef2fcfd (patch)
treef9b9b1a6a144fb35c9bd8b1277b1e1bcad4959b3
parented58467d12914a9be53e47060cf148ab218b499a (diff)
downloadinfinitytier-f444da80bcafc7ded1395a0c5349e991fef2fcfd.tar.gz
infinitytier-f444da80bcafc7ded1395a0c5349e991fef2fcfd.zip
Add a 2 second delay before the About window shows up on the first run
-rw-r--r--ZeroTier One/AppDelegate.m15
1 files changed, 11 insertions, 4 deletions
diff --git a/ZeroTier One/AppDelegate.m b/ZeroTier One/AppDelegate.m
index 86c83367..b1d8cce2 100644
--- a/ZeroTier One/AppDelegate.m
+++ b/ZeroTier One/AppDelegate.m
@@ -84,9 +84,12 @@
[prefsView setLaunchAtLoginEnabled:YES];
- [[NSOperationQueue mainQueue] addOperationWithBlock:^{
- [self showAbout];
- }];
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+ sleep(2);
+ [[NSOperationQueue mainQueue] addOperationWithBlock:^{
+ [self showAbout];
+ }];
+ });
}
[self.monitor updateNetworkInfo];
@@ -316,7 +319,11 @@
}
- (void)closeJoinNetworkPopover {
-
+ if (self.transientMonitor) {
+ [NSEvent removeMonitor:self.transientMonitor];
+ self.transientMonitor = nil;
+ }
+ [self.joinNetworkPopover close];
}
@end