mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 00:33:28 +01:00
[AltServer] Works without Mail plug-in if SIP and AMFI are both disabled
This commit is contained in:
@@ -173,11 +173,24 @@ private extension AppDelegate
|
||||
|
||||
if !self.pluginManager.isMailPluginInstalled || self.pluginManager.isUpdateAvailable
|
||||
{
|
||||
self.installMailPlugin { (result) in
|
||||
switch result
|
||||
AnisetteDataManager.shared.isXPCAvailable { (isAvailable) in
|
||||
if isAvailable
|
||||
{
|
||||
case .failure: break
|
||||
case .success: install()
|
||||
// XPC service is available, so we don't need to install/update Mail plug-in.
|
||||
// Users can still manually do so from the AltServer menu.
|
||||
install()
|
||||
}
|
||||
else
|
||||
{
|
||||
DispatchQueue.main.async {
|
||||
self.installMailPlugin { (result) in
|
||||
switch result
|
||||
{
|
||||
case .failure: break
|
||||
case .success: install()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user