Commit 693dca35 authored by Felix Paul Kühne's avatar Felix Paul Kühne

onedrive: fix folder navigation back to the root folder

parent da4c451d
......@@ -87,7 +87,10 @@
- (IBAction)goBack:(id)sender
{
if (_oneDriveController.rootFolder != _oneDriveController.currentFolder) {
_oneDriveController.currentFolder = _oneDriveController.currentFolder.parent;
if ([_oneDriveController.rootFolder.name isEqualToString:_oneDriveController.currentFolder.parent.name])
_oneDriveController.currentFolder = nil;
else
_oneDriveController.currentFolder = _oneDriveController.currentFolder.parent;
[_activityIndicator startAnimating];
[_oneDriveController loadCurrentFolder];
} else
......
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