Skip to content

Commit

Permalink
- Fix race condition where cached thumbnails were returned before the…
Browse files Browse the repository at this point in the history
… item variable was updated
  • Loading branch information
felix-schwarz committed May 18, 2018
1 parent 11ba397 commit 8b972dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ownCloud/Client/ClientItemCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class ClientItemCell: ThemeTableViewCell {

// MARK: - Present item
var item : OCItem? {
willSet {
if let item: OCItem = newValue {
updateWith(item)
didSet {
if let newItem: OCItem = item {
updateWith(newItem)
}
}
}
Expand Down

0 comments on commit 8b972dd

Please sign in to comment.