Fix more queue regressions.

This commit is contained in:
Damiano Galassi committed 2019-01-29 11:22:31 +01:00
1 parent 7fffcd3916
commit 6d71efe9b4
3 files changed
+22 -9

No files matched your search

+3 -1
View File
@@ -58,7 +58,9 @@ class ItemViewController : NSViewController {
guard let s = self, let newCount = change.newValue?.count else { return }
let count = newCount - (change.oldValue?.count ?? 0)
let height = 16.0 * CGFloat(count >= 0 ? count : 1)
s.tableHeight.constant = height
DispatchQueue.main.async {
s.tableHeight.constant = height
}
}
}