mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 18:53:40 +01:00
Fixes “more” button incorrectly (dis-)appearing on update cells
This commit is contained in:
@@ -272,6 +272,10 @@ private extension MyAppsViewController
|
|||||||
cell.versionDescriptionTextView.moreButton.addTarget(self, action: #selector(MyAppsViewController.toggleUpdateCellMode(_:)), for: .primaryActionTriggered)
|
cell.versionDescriptionTextView.moreButton.addTarget(self, action: #selector(MyAppsViewController.toggleUpdateCellMode(_:)), for: .primaryActionTriggered)
|
||||||
|
|
||||||
cell.setNeedsLayout()
|
cell.setNeedsLayout()
|
||||||
|
|
||||||
|
// Below lines are necessary to avoid "more" button layout issues.
|
||||||
|
cell.versionDescriptionTextView.setNeedsLayout()
|
||||||
|
cell.layoutIfNeeded()
|
||||||
}
|
}
|
||||||
dataSource.prefetchHandler = { (installedApp, indexPath, completionHandler) in
|
dataSource.prefetchHandler = { (installedApp, indexPath, completionHandler) in
|
||||||
guard let iconURL = installedApp.storeApp?.iconURL else { return nil }
|
guard let iconURL = installedApp.storeApp?.iconURL else { return nil }
|
||||||
|
|||||||
Reference in New Issue
Block a user