Add export certificate feature (#959)

This commit is contained in:
Huge_Black
2025-04-20 08:48:50 +08:00
committed by GitHub
parent 7415fe6204
commit 0e3c3dddfe
4 changed files with 69 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ final class TabBarController: UITabBarController
NotificationCenter.default.addObserver(self, selector: #selector(TabBarController.openPatreonSettings(_:)), name: AppDelegate.openPatreonSettingsDeepLinkNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(TabBarController.importApp(_:)), name: AppDelegate.importAppDeepLinkNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(TabBarController.presentSources(_:)), name: AppDelegate.addSourceDeepLinkNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(TabBarController.exportCertificate(_:)), name: AppDelegate.exportCertificateNotification, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(TabBarController.openErrorLog(_:)), name: ToastView.openErrorLogNotification, object: nil)
}
@@ -141,4 +142,9 @@ private extension TabBarController
{
self.selectedIndex = Tab.settings.rawValue
}
@objc func exportCertificate(_ notification: Notification)
{
self.selectedIndex = Tab.settings.rawValue
}
}