Keep popups open if user interacts with anything outside of MacPass

This commit is contained in:
Michael Starke
2018-11-27 17:31:35 +01:00
parent 22b267f63e
commit 3f43a061b8
2 changed files with 2 additions and 2 deletions

View File

@@ -386,7 +386,7 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
if([self.presentedViewControllers containsObject:viewController]) { if([self.presentedViewControllers containsObject:viewController]) {
return; 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 - #pragma mark -

View File

@@ -178,7 +178,7 @@ typedef NS_ENUM(NSUInteger, MPContentTab) {
- (void)_popupViewController:(MPViewController *)vc atView:(NSView *)view { - (void)_popupViewController:(MPViewController *)vc atView:(NSView *)view {
vc.representedObject = self.representedObject; vc.representedObject = self.representedObject;
vc.observer = self.windowController.document; 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 #pragma mark - MPDocument Notifications