mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 00:02:28 +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]) {
|
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 -
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user