Set the title of the view to the selected PC
This commit is contained in:
parent
44f64e1a35
commit
109fa6f463
2 changed files with 14 additions and 0 deletions
|
|
@ -124,7 +124,11 @@ static NSMutableSet* hostList;
|
|||
return;
|
||||
}
|
||||
|
||||
#if TARGET_OS_TV
|
||||
self.title = host.name;
|
||||
#else
|
||||
self->_computerNameButton.title = host.name;
|
||||
#endif
|
||||
[self.navigationController.navigationBar setNeedsLayout];
|
||||
|
||||
[self updateAppsForHost:host];
|
||||
|
|
@ -168,7 +172,11 @@ static NSMutableSet* hostList;
|
|||
return;
|
||||
}
|
||||
|
||||
#if TARGET_OS_TV
|
||||
self.title = host.name;
|
||||
#else
|
||||
self->_computerNameButton.title = host.name;
|
||||
#endif
|
||||
[self.navigationController.navigationBar setNeedsLayout];
|
||||
|
||||
[self updateAppsForHost:host];
|
||||
|
|
@ -241,7 +249,11 @@ static NSMutableSet* hostList;
|
|||
|
||||
[_appManager stopRetrieving];
|
||||
_selectedHost = nil;
|
||||
#if TARGET_OS_TV
|
||||
self.title = @"";
|
||||
#else
|
||||
_computerNameButton.title = @"No Host Selected";
|
||||
#endif
|
||||
[self.collectionView reloadData];
|
||||
[self.view addSubview:hostScrollView];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue