[ToastView]: Fix: restore back to printing localizedDescription as before

This commit is contained in:
Magesh K
2025-01-21 21:53:29 +05:30
parent c0a81edf6b
commit 1641f6e93f
3 changed files with 25 additions and 12 deletions

View File

@@ -316,7 +316,7 @@ extension LaunchViewController
let errorDesc = ErrorProcessing(.fullError).getDescription(error: error as NSError)
print("Failed to update sources on launch. \(errorDesc)")
let toastView = ToastView(error: error)
let toastView = ToastView(error: error, mode: .fullError)
toastView.addTarget(self.destinationViewController, action: #selector(TabBarController.presentSources), for: .touchUpInside)
toastView.show(in: self.destinationViewController.selectedViewController ?? self.destinationViewController)
}