Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit f619a25

Browse files
ismetaninrnystrom
authored andcommitted
Changing accounts resets to main tab fix (#2114)
* Fix issue changing accounts resets to main tab * Pull request review code fix
1 parent cd16250 commit f619a25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Classes/Systems/RootNavigationManager.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ final class RootNavigationManager: GitHubSessionListener {
5454
} else {
5555
block()
5656
}
57+
58+
self.tabBarController?.selectedIndex = 0
5759
}
5860

5961
public func resetRootViewController(userSession: GitHubUserSession?) {
@@ -77,8 +79,6 @@ final class RootNavigationManager: GitHubSessionListener {
7779
newBookmarksRootViewController(client: client),
7880
settingsRootViewController ?? UIViewController() // simply satisfying compiler
7981
]
80-
81-
tabBarController?.selectedIndex = 0
8282
}
8383

8484
public func pushLoginViewController(nav: UINavigationController) {

0 commit comments

Comments
 (0)