Skip to content

Commit

Permalink
Fix bug in tab-close logic
Browse files Browse the repository at this point in the history
  • Loading branch information
NSExceptional committed Oct 26, 2021
1 parent 269e318 commit fd4b38f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Core/Controllers/FLEXNavigationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)ani
- (void)dismissAnimated {
// Tabs are only closed if the done button is pressed; this
// allows you to leave a tab open by dragging down to dismiss
[FLEXTabList.sharedList closeTab:self];
if ([self.presentingViewController isKindOfClass:[FLEXExplorerViewController class]]) {
[FLEXTabList.sharedList closeTab:self];
}

[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}

Expand Down

0 comments on commit fd4b38f

Please sign in to comment.