mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 19:22:25 +00:00
Keep popups open if user interacts with anything outside of MacPass
This commit is contained in:
@@ -386,7 +386,7 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
if([self.presentedViewControllers containsObject:viewController]) {
|
||||
return;
|
||||
}
|
||||
[self presentViewController:viewController asPopoverRelativeToRect:NSZeroRect ofView:view preferredEdge:edge behavior:NSPopoverBehaviorTransient];
|
||||
[self presentViewController:viewController asPopoverRelativeToRect:NSZeroRect ofView:view preferredEdge:edge behavior:NSPopoverBehaviorSemitransient];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
@@ -178,7 +178,7 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
|
||||
- (void)_popupViewController:(MPViewController *)vc atView:(NSView *)view {
|
||||
vc.representedObject = self.representedObject;
|
||||
vc.observer = self.windowController.document;
|
||||
[self presentViewController:vc asPopoverRelativeToRect:NSZeroRect ofView:view preferredEdge:NSMinYEdge behavior:NSPopoverBehaviorTransient];
|
||||
[self presentViewController:vc asPopoverRelativeToRect:NSZeroRect ofView:view preferredEdge:NSMinYEdge behavior:NSPopoverBehaviorSemitransient];
|
||||
}
|
||||
|
||||
#pragma mark - MPDocument Notifications
|
||||
|
||||
Reference in New Issue
Block a user