mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Debug
This commit is contained in:
parent
5ed8a4b6f1
commit
cf3796f833
@ -37,6 +37,7 @@ private enum SGDebugActions: String {
|
||||
case flexing
|
||||
case fileManager
|
||||
case clearRegDateCache
|
||||
case clearOutgoingTranslationLanguageCache
|
||||
case restorePurchases
|
||||
case setIAP
|
||||
case resetIAP
|
||||
@ -66,6 +67,7 @@ private func SGDebugControllerEntries(presentationData: PresentationData) -> [SG
|
||||
#endif
|
||||
|
||||
entries.append(.action(id: id.count, section: .base, actionType: .clearRegDateCache, text: "Clear Regdate cache", kind: .generic))
|
||||
entries.append(.action(id: id.count, section: .base, actionType: .clearOutgoingTranslationLanguageCache, text: "Clear Outgoing Translation cache", kind: .generic))
|
||||
entries.append(.toggle(id: id.count, section: .base, settingName: .forceImmediateShareSheet, value: SGSimpleSettings.shared.forceSystemSharing, text: "Force System Share Sheet", enabled: true))
|
||||
|
||||
entries.append(.action(id: id.count, section: .base, actionType: .restorePurchases, text: "PayWall.RestorePurchases".i18n(presentationData.strings.baseLanguageCode), kind: .generic))
|
||||
@ -133,6 +135,11 @@ public func sgDebugController(context: AccountContext) -> ViewController {
|
||||
spinner?.dismiss()
|
||||
}
|
||||
*/
|
||||
case .clearOutgoingTranslationLanguageCache:
|
||||
SGLogger.shared.log("SGDebug", "Outgoing translation language cache cleanup init")
|
||||
SGSimpleSettings.shared.outgoingLanguageTranslation.drop()
|
||||
SGLogger.shared.log("SGDebug", "Outgoing translation language cache cleanup succesfull")
|
||||
presentControllerImpl?(okUndoController("OK: Outgoing translation language cache cleaned", presentationData), nil)
|
||||
case .flexing:
|
||||
#if DEBUG
|
||||
FLEXManager.shared.toggleExplorer()
|
||||
|
Loading…
x
Reference in New Issue
Block a user