Merge pull request #4244 from winniequinn/main

Fix account add crash
This commit is contained in:
Brent Simmons
2024-07-26 21:53:47 -07:00
committed by GitHub

View File

@@ -25,6 +25,7 @@ final class AccountsPreferencesViewController: NSViewController {
@IBOutlet weak var deleteButton: NSButton!
var addAccountDelegate: AccountsPreferencesAddAccountDelegate?
var addAccountWindowController: NSWindowController?
var addAccountsViewController: NSHostingController<AddAccountsView>?
private var sortedAccounts = [Account]()
@@ -53,6 +54,7 @@ final class AccountsPreferencesViewController: NSViewController {
let controller = NSHostingController(rootView: AddAccountsView(delegate: self))
controller.rootView.parent = controller
presentAsSheet(controller)
addAccountsViewController = controller
}
@IBAction func removeAccount(_ sender: Any) {