From a759c7be9ef08b70d7bb765d74c9f3968ead3c12 Mon Sep 17 00:00:00 2001 From: Spidy123222 Date: Wed, 30 Aug 2023 05:12:02 +0000 Subject: [PATCH] please fix to show button --- AltStore/Settings/SettingsViewController.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 9b96f71d..27048e74 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -52,11 +52,11 @@ extension SettingsViewController { case sendFeedback case refreshAttempts - case clearCache case errorLog case resetPairingFile case resetAdiPb case advancedSettings + case clearCache } } @@ -294,7 +294,7 @@ private extension SettingsViewController 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: ""), preferredStyle: .actionSheet) alertController.addAction(UIAlertAction(title: UIAlertAction.cancel.title, style: UIAlertAction.cancel.style) { [weak self] _ in @@ -537,8 +537,6 @@ extension SettingsViewController let toastView = ToastView(text: NSLocalizedString("Cannot Send Mail", comment: ""), detailText: nil) toastView.show(in: self) } - - case .clearCache: self.clearCache() case .resetPairingFile: let filename = "ALTPairingFile.mobiledevicepairing" @@ -592,6 +590,7 @@ extension SettingsViewController ELOG("UIApplication.openSettingsURLString invalid") } case .refreshAttempts, .errorLog: break + case .clearCache: self.clearCache() }