please fix to show button

This commit is contained in:
Spidy123222
2023-08-30 05:12:02 +00:00
committed by nythepegasus
parent 12fc6cf6e2
commit a759c7be9e

View File

@@ -52,11 +52,11 @@ extension SettingsViewController
{ {
case sendFeedback case sendFeedback
case refreshAttempts case refreshAttempts
case clearCache
case errorLog case errorLog
case resetPairingFile case resetPairingFile
case resetAdiPb case resetAdiPb
case advancedSettings case advancedSettings
case clearCache
} }
} }
@@ -294,7 +294,7 @@ private extension SettingsViewController
func clearCache() func clearCache()
{ {
let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to clear AltStore's cache?", comment: ""), let alertController = UIAlertController(title: NSLocalizedString("Are you sure you want to clear SideStore's cache?", comment: ""),
message: NSLocalizedString("This will remove all temporary files as well as backups for uninstalled apps.", comment: ""), message: NSLocalizedString("This will remove all temporary files as well as backups for uninstalled apps.", comment: ""),
preferredStyle: .actionSheet) preferredStyle: .actionSheet)
alertController.addAction(UIAlertAction(title: UIAlertAction.cancel.title, style: UIAlertAction.cancel.style) { [weak self] _ in alertController.addAction(UIAlertAction(title: UIAlertAction.cancel.title, style: UIAlertAction.cancel.style) { [weak self] _ in
@@ -538,8 +538,6 @@ extension SettingsViewController
toastView.show(in: self) toastView.show(in: self)
} }
case .clearCache: self.clearCache()
case .resetPairingFile: case .resetPairingFile:
let filename = "ALTPairingFile.mobiledevicepairing" let filename = "ALTPairingFile.mobiledevicepairing"
let fm = FileManager.default let fm = FileManager.default
@@ -592,6 +590,7 @@ extension SettingsViewController
ELOG("UIApplication.openSettingsURLString invalid") ELOG("UIApplication.openSettingsURLString invalid")
} }
case .refreshAttempts, .errorLog: break case .refreshAttempts, .errorLog: break
case .clearCache: self.clearCache()
} }