From 25c4ca01def93a496b970d16cefe26dd04f8f69b Mon Sep 17 00:00:00 2001 From: TrueZhuanjia Date: Sat, 19 Jul 2025 23:00:20 +0800 Subject: [PATCH] hostView test --- VoidLink/ViewControllers/MainFrameViewController.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index 7d133c14..afd95aad 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -331,7 +331,6 @@ static NSMutableSet* hostList; // when at the host selection view. [self.navigationController.view removeGestureRecognizer:_menuRecognizer]; #endif - [self.collectionView setContentOffset:CGPointZero animated:NO]; [_appManager stopRetrieving]; _showHiddenApps = NO; _selectedHost = nil; @@ -375,6 +374,8 @@ static NSMutableSet* hostList; self.collectionView.backgroundColor = [ThemeManager appBackgroundColor]; //self.view.backgroundColor = [ThemeManager appBackgroundColor]; + [self.collectionView setContentOffset:CGPointZero animated:NO]; + [self attachWaterMark]; self.navigationItem.rightBarButtonItems = @[_upButton]; self.revealViewController.mainFrameIsInHostView = false; @@ -1776,8 +1777,6 @@ static NSMutableSet* hostList; - (void)viewWillDisappear:(BOOL)animated{ NSLog(@"willDisappear"); [super viewWillDisappear:animated]; - [self.collectionView removeFromSuperview]; - [self.hostCollectionVC.view removeFromSuperview]; [_foregroundHostUpdateTimer invalidate]; _foregroundHostUpdateTimer = nil; }