Fixes widget refreshing and is more thorough matching store ID

This commit is contained in:
Joelle Stickney
2023-03-28 23:48:24 -04:00
parent 5e2cc6e20c
commit 6d0f4bb3da

View File

@@ -11,10 +11,12 @@ import AltSign
extension ALTApplication
{
static let altstoreBundleID = Bundle.Info.appbundleIdentifier
static let altstoreBundleIDOriginal = "rileytestut.AltStore"
static let altstoreBundleIDOriginal = "AltStore"
static let storeBundleID = "SideStore"
static let widgetID = "Widget"
var isAltStoreApp: Bool {
let isAltStoreApp = self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal)
let isAltStoreApp = ( self.bundleIdentifier.contains(ALTApplication.altstoreBundleID) || self.bundleIdentifier.contains(ALTApplication.altstoreBundleIDOriginal) || self.bundleIdentifier.contains(ALTApplication.storeBundleID) ) && !self.bundleIdentifier.contains(ALTApplication.widgetID)
return isAltStoreApp
}
}