Opens Error Log upon tapping ToastView showing logged error

This commit is contained in:
Riley Testut
2022-10-26 16:46:21 -05:00
committed by Magesh K
parent 95a3bbf6b9
commit 9f04b3a9f1
2 changed files with 11 additions and 1 deletions

View File

@@ -145,3 +145,13 @@ final class ToastView: RSTToastView
NotificationCenter.default.post(name: ToastView.openErrorLogNotification, object: self)
}
}
private extension ToastView
{
@objc func showErrorLog()
{
guard self.opensErrorLog else { return }
NotificationCenter.default.post(name: ToastView.openErrorLogNotification, object: self)
}
}

View File

@@ -441,7 +441,7 @@ private extension SettingsViewController
guard self.presentedViewController == nil else { return }
self.navigationController?.popViewController(animated: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
self.performSegue(withIdentifier: "showErrorLog", sender: nil)
}
}