Skip to content

Commit 5c4a218

Browse files
committed
Fix confusing navigation stack for nested global entries
1 parent 5bc8baa commit 5c4a218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/GlobalStateExplorers/Globals/FLEXGlobalsViewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (void)viewDidLoad {
171171
self.title = self.customTitle ?: @"💪 FLEX";
172172
self.showsSearchBar = YES;
173173
self.searchBarDebounceInterval = kFLEXDebounceInstant;
174-
self.navigationItem.backBarButtonItem = [UIBarButtonItem flex_backItemWithTitle:@"Back"];
174+
self.navigationItem.backBarButtonItem = [UIBarButtonItem flex_backItemWithTitle:self.showsDefaultEntries ? @"Back" : self.title];
175175

176176
_manuallyDeselectOnAppear = NSProcessInfo.processInfo.operatingSystemVersion.majorVersion < 10;
177177
}

0 commit comments

Comments
 (0)