Commit a235faa2 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

network login: fix navigation on iPad

parent e16dcf6e
......@@ -197,7 +197,10 @@
{
_activityBackgroundView.hidden = YES;
[_activityIndicator stopAnimating];
[self.navigationController popViewControllerAnimated:YES];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
[self.navigationController popViewControllerAnimated:YES];
else
[self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)saveServer:(id)sender
......
......@@ -418,7 +418,7 @@
[self presentViewController:navCon animated:YES completion:nil];
if (loginViewController.navigationItem.leftBarButtonItem == nil)
loginViewController.navigationItem.leftBarButtonItem = [UIBarButtonItem themedDarkToolbarButtonWithTitle:NSLocalizedString(@"BUTTON_DONE", nil) target:loginViewController andSelector:@selector(dismissWithAnimation:)];
loginViewController.navigationItem.leftBarButtonItem = [UIBarButtonItem themedDarkToolbarButtonWithTitle:NSLocalizedString(@"BUTTON_DONE", nil) target:loginViewController andSelector:@selector(_dismiss)];
} else
[self.navigationController pushViewController:loginViewController animated:YES];
break;
......@@ -462,7 +462,7 @@
[self presentViewController:navCon animated:YES completion:nil];
if (loginViewController.navigationItem.leftBarButtonItem == nil)
loginViewController.navigationItem.leftBarButtonItem = [UIBarButtonItem themedDarkToolbarButtonWithTitle:NSLocalizedString(@"BUTTON_DONE", nil) target:loginViewController andSelector:@selector(dismissWithAnimation:)];
loginViewController.navigationItem.leftBarButtonItem = [UIBarButtonItem themedDarkToolbarButtonWithTitle:NSLocalizedString(@"BUTTON_DONE", nil) target:loginViewController andSelector:@selector(_dismiss)];
} else
[self.navigationController pushViewController:loginViewController animated:YES];
loginViewController.hostname = [_ftpServices[row] hostName];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment