|
@@ -246,15 +246,18 @@
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- tableDirectory *directory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@", app.activeAccount, _serverUrl]];
|
|
|
+ if (app.activeAccount.length > 0) {
|
|
|
|
|
|
- if (app.activeAccount.length > 0 && app.activeMain != self ) {
|
|
|
+ tableDirectory *directory = [[NCManageDatabase sharedInstance] getTableDirectoryWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@", app.activeAccount, _serverUrl]];
|
|
|
+
|
|
|
+ if (app.activeMain != self || [directory.etag length] == 0) {
|
|
|
|
|
|
- // Load Datasource
|
|
|
- [self reloadDatasource:_serverUrl];
|
|
|
+ // Load Datasource
|
|
|
+ [self reloadDatasource:_serverUrl];
|
|
|
|
|
|
- // Read (file) Folder
|
|
|
- [self readFileReloadFolder];
|
|
|
+ // Read (file) Folder
|
|
|
+ [self readFileReloadFolder];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|