|
@@ -4,6 +4,8 @@ import DcCore
|
|
class ProfileInfoViewController: UITableViewController {
|
|
class ProfileInfoViewController: UITableViewController {
|
|
|
|
|
|
weak var coordinator: EditSettingsCoordinator?
|
|
weak var coordinator: EditSettingsCoordinator?
|
|
|
|
+ var onClose: VoidFunction?
|
|
|
|
+
|
|
private let dcContext: DcContext
|
|
private let dcContext: DcContext
|
|
|
|
|
|
private var displayName: String?
|
|
private var displayName: String?
|
|
@@ -130,11 +132,8 @@ class ProfileInfoViewController: UITableViewController {
|
|
|
|
|
|
@objc private func doneButtonPressed(_ sender: UIBarButtonItem) {
|
|
@objc private func doneButtonPressed(_ sender: UIBarButtonItem) {
|
|
dcContext.displayname = displayName
|
|
dcContext.displayname = displayName
|
|
- self.dismiss(animated: true, completion: nil)
|
|
|
|
-
|
|
|
|
- if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
|
|
|
|
- appDelegate.appCoordinator.presentTabBarController()
|
|
|
|
- }
|
|
|
|
|
|
+ self.dismiss(animated: false, completion: nil) // not sure if this is needed
|
|
|
|
+ onClose?()
|
|
}
|
|
}
|
|
|
|
|
|
private func galleryButtonPressed(_ action: UIAlertAction) {
|
|
private func galleryButtonPressed(_ action: UIAlertAction) {
|