From 313af5a7e78b97a5f1c0dda4057ecb3281e1b8d4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 14 Nov 2020 15:15:46 -0600 Subject: [PATCH] Fix popover dialog not correctly anchoring to the UIComputerView on iPad The view was being replaced after the UIAlertController was anchored to it --- Limelight/ViewControllers/MainFrameViewController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index d61d7e8..b06f124 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -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 {