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

Commit

Permalink
Fix #7737: Crash at Browsing Mode Change while drag-drop action in Ta…
Browse files Browse the repository at this point in the history
…b Tray (#7778)

Adding check for active drag and drop while mode change
  • Loading branch information
soner-yuksel authored Jul 25, 2023
1 parent 1621dcf commit 61225da
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 61225da

Please sign in to comment.