Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #7737: Crash at Browsing Mode Change while drag-drop action in Tab Tray #7778

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,12 @@ class TabTrayController: LoadingViewController {

@objc func togglePrivateModeAction() {
tabTraySearchController.isActive = false

// Mode Change action disabled while drap-drop is active
// Added to prevent Diffable Data source crash
if tabTrayView.collectionView.hasActiveDrag || tabTrayView.collectionView.hasActiveDrop {
return
}

// Record the slected index before private mode navigation
if !privateMode {
Expand Down