Settings: More cleaning

This commit is contained in:
manuroe
2020-01-30 07:14:35 +01:00
parent 8dbb4c229c
commit 46a6979ee3
2 changed files with 14 additions and 51 deletions
@@ -165,7 +165,7 @@ UIDocumentInteractionControllerDelegate>
if (self.tableView.dataSource)
{
[self refreshSettings];
[self reloadData];
}
}
@@ -229,7 +229,7 @@ UIDocumentInteractionControllerDelegate>
[self releasePushedViewController];
// Refresh display
[self refreshSettings];
[self reloadData];
// Refresh the current device information in parallel
[self loadCurrentDeviceInformation];
@@ -313,7 +313,7 @@ UIDocumentInteractionControllerDelegate>
// Refresh all the table (A slide down animation is observed when we limit the refresh to the concerned section).
// Note: The use of 'reloadData' handles the case where the account has been logged out.
[self refreshSettings];
[self reloadData];
} failure:nil];
}
@@ -432,18 +432,18 @@ UIDocumentInteractionControllerDelegate>
// Refresh all the table (A slide down animation is observed when we limit the refresh to the concerned section).
// Note: The use of 'reloadData' handles the case where the account has been logged out.
[self refreshSettings];
[self reloadData];
} failure:^(NSError *error) {
// Display the data that has been loaded last time
// Note: The use of 'reloadData' handles the case where the account has been logged out.
[self refreshSettings];
[self reloadData];
}];
}
- (void)refreshSettings
- (void)reloadData
{
// Trigger a full table reloadData
[self.tableView reloadData];
@@ -897,7 +897,7 @@ UIDocumentInteractionControllerDelegate>
- (void)dataSource:(MXKDataSource *)dataSource didCellChange:(id)changes
{
// Group data has been updated. Do a simple full reload
[self refreshSettings];
[self reloadData];
}