mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Add a 2 second delay before the About window shows up on the first run
This commit is contained in:
parent
ed58467d12
commit
f444da80bc
1 changed files with 11 additions and 4 deletions
|
@ -84,9 +84,12 @@
|
||||||
|
|
||||||
[prefsView setLaunchAtLoginEnabled:YES];
|
[prefsView setLaunchAtLoginEnabled:YES];
|
||||||
|
|
||||||
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||||
|
sleep(2);
|
||||||
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
|
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
|
||||||
[self showAbout];
|
[self showAbout];
|
||||||
}];
|
}];
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[self.monitor updateNetworkInfo];
|
[self.monitor updateNetworkInfo];
|
||||||
|
@ -316,7 +319,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)closeJoinNetworkPopover {
|
- (void)closeJoinNetworkPopover {
|
||||||
|
if (self.transientMonitor) {
|
||||||
|
[NSEvent removeMonitor:self.transientMonitor];
|
||||||
|
self.transientMonitor = nil;
|
||||||
|
}
|
||||||
|
[self.joinNetworkPopover close];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Reference in a new issue