We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 727ea06 commit b28e393Copy full SHA for b28e393
kDrive/AppRouter.swift
@@ -190,6 +190,12 @@ public struct AppRouter: AppNavigable {
190
return
191
}
192
193
+ guard let previousDriveId = sceneUserInfo[SceneRestorationValues.driveId.rawValue] as? Int,
194
+ previousDriveId == driveFileManager.drive.id else {
195
+ Log.sceneDelegate("driveId do not match for restore :\(sceneUserInfo)", level: .error)
196
+ return
197
+ }
198
+
199
let selectedIndex = tabBarViewController.selectedIndex
200
let viewControllers = tabBarViewController.viewControllers
201
guard let rootNavigationController = viewControllers?[safe: selectedIndex] as? UINavigationController else {
0 commit comments