Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit 2fb60a4

Browse files
albertChien-twdabechen
authored andcommitted
fix the warning in main thread
1 parent a103b59 commit 2fb60a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Owncloud iOs Client/Tabs/FileTab/FilesViewController.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,9 +1945,11 @@ - (void)stopPullRefresh{
19451945
- (void) syncFavoritesByFolder:(FileDto *) folder {
19461946

19471947
//Launch the method to sync the favorites files with specific path
1948-
AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication]delegate];
1949-
[[AppDelegate sharedManageFavorites] syncFavoritesOfFolder:folder withUser:app.activeUser.userId];
1950-
1948+
dispatch_async(dispatch_get_main_queue(), ^{
1949+
AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication]delegate];
1950+
[[AppDelegate sharedManageFavorites] syncFavoritesOfFolder:folder withUser:app.activeUser.userId];
1951+
});
1952+
19511953
}
19521954

19531955
/*

0 commit comments

Comments
 (0)