mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove Add Account from the Add dialog.
This commit is contained in:
@@ -45,10 +45,8 @@ class AddContainerViewController: UIViewController {
|
||||
switch sender.selectedSegmentIndex {
|
||||
case 0:
|
||||
switchToFeed()
|
||||
case 1:
|
||||
switchToFolder()
|
||||
default:
|
||||
switchToAccount()
|
||||
switchToFolder()
|
||||
}
|
||||
|
||||
}
|
||||
@@ -110,15 +108,6 @@ private extension AddContainerViewController {
|
||||
displayContentController(UIStoryboard.add.instantiateController(ofType: AddFolderViewController.self))
|
||||
}
|
||||
|
||||
func switchToAccount() {
|
||||
guard !(currentViewController is AddAccountViewController) else {
|
||||
return
|
||||
}
|
||||
resetUI()
|
||||
hideCurrentController()
|
||||
displayContentController(UIStoryboard.add.instantiateController(ofType: AddAccountViewController.self))
|
||||
}
|
||||
|
||||
func resetUI() {
|
||||
addButton.isEnabled = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user