mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 22:10:11 +00:00
Disable both navbar buttons when disabling navigation
This commit is contained in:
1 parent
c5e1bbf61b
commit
3c9314dff3
1 file changed
+2
@@ -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