-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last Viewed Folder Bookmarks Draft -- Not To Be Merged #24113
Last Viewed Folder Bookmarks Draft -- Not To Be Merged #24113
Conversation
CATransaction.begin() | ||
CATransaction.setDisableActions(true) | ||
self.navigationHandler?.start( | ||
panelType: self.viewModel.selectedPanel ?? .bookmarks, | ||
navigationController: panelNavigationController, | ||
folderPath: path | ||
) | ||
CATransaction.commit() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Responsible for disabling animations
private func findPathToFolder(currentFolderGUID: String, | ||
completion: @escaping (_: [String]?) -> Void) { | ||
viewModel.profile.places.getBookmarksTree(rootGUID: BookmarkRoots.MobileFolderGUID, | ||
recursive: true).uponQueue(.main) { result in | ||
guard let maybeBookmarkTreeRoot = result.successValue, | ||
let bookmarkTreeRoot = maybeBookmarkTreeRoot else { | ||
completion(nil) | ||
return | ||
} | ||
guard let path = self.findPathToFolderGivenTree(targetGUID: currentFolderGUID, | ||
treeRootNode: bookmarkTreeRoot), | ||
!path.isEmpty else { | ||
completion(nil) | ||
return | ||
} | ||
completion(path.map({ $0.guid })) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method that runs asynchronously
This PR has been automatically marked as stale. Please leave any comment to keep this PR opened. It will be closed automatically if no further update occurs in the next 7 days. Thank you for your contributions! |
📜 Tickets
Jira ticket
Github issue
💡 Description
📝 Checklist
You have to check all boxes before merging
@Mergifyio backport release/v120
)