mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 11:43:24 +01:00
Disables Sources functionality for public versions
This commit is contained in:
@@ -31,8 +31,13 @@ class BrowseViewController: UICollectionViewController
|
|||||||
{
|
{
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
#if BETA
|
||||||
self.dataSource.searchController.searchableKeyPaths = [#keyPath(InstalledApp.name)]
|
self.dataSource.searchController.searchableKeyPaths = [#keyPath(InstalledApp.name)]
|
||||||
self.navigationItem.searchController = self.dataSource.searchController
|
self.navigationItem.searchController = self.dataSource.searchController
|
||||||
|
#else
|
||||||
|
// Hide Sources button for public version while in beta.
|
||||||
|
self.navigationItem.rightBarButtonItem = nil
|
||||||
|
#endif
|
||||||
|
|
||||||
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false
|
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user