Skip to content

Commit

Permalink
fix: Prevent reuse issues
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Weidmann <[email protected]>
  • Loading branch information
PhilippeWeidmann committed Nov 1, 2024
1 parent ae44d83 commit c88c72b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kDrive/UI/Controller/Menu/SwitchUserViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,13 @@ extension SwitchUserViewController: UITableViewDataSource {
cell.titleLabel.text = account.user.displayName
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
} else {
cell.accessoryImageView.image = KDriveResourcesAsset.chevronRight.image
cell.isUserInteractionEnabled = !driveInfosManager.getDrives(for: account.userId).isEmpty
}

account.user.getAvatar { image in
Expand Down

0 comments on commit c88c72b

Please sign in to comment.