forked from shadowfacts/Tusker
Fix cells not being deselected in account list and status action account list
This commit is contained in:
parent
f23d3dfa3f
commit
92cf938e99
|
@ -58,6 +58,13 @@ class AccountListViewController: UIViewController {
|
||||||
dataSource.apply(snapshot, animatingDifferences: false)
|
dataSource.apply(snapshot, animatingDifferences: false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
|
super.viewWillAppear(animated)
|
||||||
|
|
||||||
|
collectionView.indexPathsForSelectedItems?.forEach {
|
||||||
|
collectionView.deselectItem(at: $0, animated: true)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extension AccountListViewController {
|
extension AccountListViewController {
|
||||||
|
|
|
@ -120,6 +120,10 @@ class StatusActionAccountListViewController: UIViewController {
|
||||||
override func viewWillAppear(_ animated: Bool) {
|
override func viewWillAppear(_ animated: Bool) {
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
|
|
||||||
|
collectionView.indexPathsForSelectedItems?.forEach {
|
||||||
|
collectionView.deselectItem(at: $0, animated: true)
|
||||||
|
}
|
||||||
|
|
||||||
if accountIDs == nil {
|
if accountIDs == nil {
|
||||||
Task {
|
Task {
|
||||||
await loadAccounts()
|
await loadAccounts()
|
||||||
|
|
Loading…
Reference in New Issue