mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Uses alternate app icon for AltStore in My Apps, if one is chosen
This commit is contained in:
@@ -13,6 +13,11 @@ import AltSign
|
||||
import AltStoreCore
|
||||
import Roxas
|
||||
|
||||
extension UIApplication
|
||||
{
|
||||
static let didChangeAppIconNotification = Notification.Name("io.altstore.AppManager.didChangeAppIcon")
|
||||
}
|
||||
|
||||
private final class AltIcon: Decodable
|
||||
{
|
||||
var name: String
|
||||
@@ -190,6 +195,10 @@ extension AltAppIconsViewController
|
||||
alertController.addAction(.ok)
|
||||
self.present(alertController, animated: true)
|
||||
}
|
||||
else
|
||||
{
|
||||
NotificationCenter.default.post(name: UIApplication.didChangeAppIconNotification, object: icon)
|
||||
}
|
||||
|
||||
if let selectedIndexPath = self.collectionView.indexPathsForSelectedItems?.first
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user