From eacdda384a4ead38009648c4c7badc010e2b9895 Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Mon, 7 Jul 2025 22:56:44 +0800 Subject: [PATCH] does not force return to host view after session connection --- VoidLink/ViewControllers/MainFrameViewController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index 7ddb8dc3..24810f10 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -68,6 +68,7 @@ NSArray* _sortedAppList; NSCache* _boxArtCache; bool _background; + bool _enteredAppView; UIView* menuSeparator; UIView* snapshot; SettingsViewController* settingsViewController; @@ -321,6 +322,7 @@ static NSMutableSet* hostList; } - (void)switchToHostView { + _enteredAppView = false; #if TARGET_OS_TV // Remove the menu button intercept to allow the app to exit // when at the host selection view. @@ -359,6 +361,7 @@ static NSMutableSet* hostList; } - (void)switchToAppView{ + _enteredAppView = true; //_appManager = [[AppAssetManager alloc] initWithCallback:self]; [self.collectionView setCollectionViewLayout:self.collectionViewLayout]; [self.collectionView reloadData]; //for new scroll host view reloading mechanism @@ -391,7 +394,7 @@ static NSMutableSet* hostList; _selectedHost = host; if (host.state == StateOnline && host.pairState == PairStatePaired && host.appList.count > 0) { [self closeSettingViewAnimated:NO]; - [self switchToAppView]; + // [self switchToAppView]; [self updateAppsForHost:_selectedHost]; [self prepareToStreamApp:_sortedAppList.firstObject]; [self performSegueWithIdentifier:@"createStreamFrame" sender:nil]; @@ -1763,7 +1766,7 @@ static NSMutableSet* hostList; [self.view addSubview:self.collectionView]; [self initHostCollection]; - [self switchToHostView]; + if(!_enteredAppView) [self switchToHostView]; [self retrieveSavedHosts];