Skip to content

Commit

Permalink
feat: Block the click on current account when switching
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptGrv committed Nov 1, 2024
1 parent ab31908 commit 42552e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kDrive/UI/Controller/Menu/SwitchUserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ extension SwitchUserViewController: UITableViewDataSource {
cell.userEmailLabel.text = account.user.email
cell.logoImage.image = KDriveResourcesAsset.placeholderAvatar.image
cell.isUserInteractionEnabled = !driveInfosManager.getDrives(for: account.userId).isEmpty
if account == accountManager.currentAccount {
cell.accessoryImageView.image = KDriveResourcesAsset.check.image
cell.isUserInteractionEnabled = false
}

account.user.getAvatar { image in
cell.logoImage.image = image
Expand Down

0 comments on commit 42552e3

Please sign in to comment.