mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Disable both navbar buttons when disabling navigation
This commit is contained in:
@@ -1167,10 +1167,12 @@ static NSMutableSet* hostList;
|
|||||||
|
|
||||||
- (void) disableNavigation {
|
- (void) disableNavigation {
|
||||||
self.navigationController.navigationBar.topItem.rightBarButtonItem.enabled = NO;
|
self.navigationController.navigationBar.topItem.rightBarButtonItem.enabled = NO;
|
||||||
|
self.navigationController.navigationBar.topItem.leftBarButtonItem.enabled = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) enableNavigation {
|
- (void) enableNavigation {
|
||||||
self.navigationController.navigationBar.topItem.rightBarButtonItem.enabled = YES;
|
self.navigationController.navigationBar.topItem.rightBarButtonItem.enabled = YES;
|
||||||
|
self.navigationController.navigationBar.topItem.leftBarButtonItem.enabled = YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if TARGET_OS_TV
|
#if TARGET_OS_TV
|
||||||
|
|||||||
Reference in New Issue
Block a user