Skip to content

Commit

Permalink
Fixed Settings button sometimes appearing faded
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapeli committed Dec 24, 2017
1 parent aa58aeb commit 2bb42fe
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 44 deletions.
2 changes: 2 additions & 0 deletions Dash/DHDocsetBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ - (void)viewDidDisappear:(BOOL)animated

- (void)viewWillAppear:(BOOL)animated
{
[self.navigationItem.leftBarButtonItem setEnabled:YES];
[super viewWillAppear:animated];
if(!self.isEditing)
{
Expand Down Expand Up @@ -567,6 +568,7 @@ - (IBAction)openSettings:(id)sender
[self performSegueWithIdentifier:@"DHDocsetDownloaderToDetailSegue" sender:self];
[[self.splitViewController.viewControllers.lastObject navigationItem] setHidesBackButton:YES];
}
[self.navigationItem.leftBarButtonItem setEnabled:NO];
}

- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
Expand Down
Loading

0 comments on commit 2bb42fe

Please sign in to comment.