mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Opens Error Log upon tapping ToastView showing logged error
This commit is contained in:
@@ -145,3 +145,13 @@ final class ToastView: RSTToastView
|
|||||||
NotificationCenter.default.post(name: ToastView.openErrorLogNotification, object: self)
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -441,7 +441,7 @@ private extension SettingsViewController
|
|||||||
guard self.presentedViewController == nil else { return }
|
guard self.presentedViewController == nil else { return }
|
||||||
|
|
||||||
self.navigationController?.popViewController(animated: false)
|
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)
|
self.performSegue(withIdentifier: "showErrorLog", sender: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user