Fix popover dialog not correctly anchoring to the UIComputerView on iPad

The view was being replaced after the UIAlertController was anchored to it
This commit is contained in:
Cameron Gutman
2020-11-14 15:15:46 -06:00
parent bb885465f6
commit 313af5a7e7

View File

@@ -552,9 +552,7 @@ static NSMutableSet* hostList;
longClickAlert.popoverPresentationController.sourceView = view;
longClickAlert.popoverPresentationController.sourceRect = CGRectMake(view.bounds.size.width / 2.0, view.bounds.size.height / 2.0, 1.0, 1.0); // center of the view
[[self activeViewController] presentViewController:longClickAlert animated:YES completion:^{
[self updateHosts];
}];
[[self activeViewController] presentViewController:longClickAlert animated:YES completion:nil];
}
- (void) addHostClicked {