Commit f06af90b authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne
Browse files

clouds: fix navigation back after logout


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent c62e8b30
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
- (void)goBack - (void)goBack
{ {
if ((![self.currentPath isEqualToString:@""] && ![self.currentPath isEqualToString:@"/"]) && [self.currentPath length] > 0) { if (((![self.currentPath isEqualToString:@""] && ![self.currentPath isEqualToString:@"/"]) && [self.currentPath length] > 0) && [self.controller isAuthorized]){
self.currentPath = [self.currentPath stringByDeletingLastPathComponent]; self.currentPath = [self.currentPath stringByDeletingLastPathComponent];
[self _requestInformationForCurrentPath]; [self _requestInformationForCurrentPath];
} else } else
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
- (void)goBack - (void)goBack
{ {
if (_oneDriveController.rootFolder != _oneDriveController.currentFolder) { if ((_oneDriveController.rootFolder != _oneDriveController.currentFolder) && [_oneDriveController isAuthorized]) {
if ([_oneDriveController.rootFolder.name isEqualToString:_oneDriveController.currentFolder.parent.name]) { if ([_oneDriveController.rootFolder.name isEqualToString:_oneDriveController.currentFolder.parent.name]) {
_oneDriveController.currentFolder = nil; _oneDriveController.currentFolder = nil;
self.title = _oneDriveController.rootFolder.name; self.title = _oneDriveController.rootFolder.name;
......
Markdown is supported
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