From b4cfe210745e7d794e7e12c2a25aacf4de907490 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Fri, 5 Jul 2024 19:35:07 +0800 Subject: [PATCH] fix setting view won't expand after quitting remote session --- Limelight/ViewControllers/MainFrameViewController.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 9b0e2984..ab8606d9 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -967,10 +967,7 @@ static NSMutableSet* hostList; { [super viewDidLoad]; [self attachWaterMark]; - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(simulateSettingsButtonPress) // //force expand settings view to update resolution table, and all setting includes current fullscreen resolution will be updated. - name:UIDeviceOrientationDidChangeNotification - object:nil]; + #if !TARGET_OS_TV // Set the side bar button action. When it's tapped, it'll show the sidebar. [_settingsButton setTarget:self.revealViewController]; @@ -1145,6 +1142,11 @@ static NSMutableSet* hostList; [super viewDidAppear:animated]; #if !TARGET_OS_TV + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(simulateSettingsButtonPress) // //force expand settings view to update resolution table, and all setting includes current fullscreen resolution will be updated. + name:UIDeviceOrientationDidChangeNotification + object:nil]; + [[self revealViewController] setPrimaryViewController:self]; #endif