Hide the detail controller on deletes
This commit is contained in:
parent
89ed6d3ef8
commit
f06d4f7ef9
|
@ -75,6 +75,7 @@ final class AccountsPreferencesViewController: NSViewController {
|
||||||
if result == NSApplication.ModalResponse.alertFirstButtonReturn {
|
if result == NSApplication.ModalResponse.alertFirstButtonReturn {
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
AccountManager.shared.deleteAccount(self.sortedAccounts[self.tableView.selectedRow])
|
AccountManager.shared.deleteAccount(self.sortedAccounts[self.tableView.selectedRow])
|
||||||
|
self.hideController()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue