Skip to content

Commit

Permalink
Fix unwanted refresh of article at end of sync
Browse files Browse the repository at this point in the history
  • Loading branch information
barijaona committed Sep 4, 2017
1 parent 653b2c3 commit 62401e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ArticleListView.m
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,9 @@ -(BOOL)scrollToArticle:(NSString *)guid
NSInteger rowIndex = 0;
BOOL found = NO;

[articleList deselectAll:self];
if (guid == nil)
{
[articleList deselectAll:self];
[articleList scrollRowToVisible:0];
return NO;
}
Expand All @@ -723,6 +723,9 @@ -(BOOL)scrollToArticle:(NSString *)guid
}
++rowIndex;
}
if (!found) {
[articleList deselectAll:self];
}
return found;
}

Expand Down
5 changes: 4 additions & 1 deletion src/UnifiedDisplayView.m
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,9 @@ -(BOOL)scrollToArticle:(NSString *)guid
NSInteger rowIndex = 0;
BOOL found = NO;

[articleList deselectAll:self];
if (guid == nil)
{
[articleList deselectAll:self];
[articleList scrollRowToVisible:0];
return NO;
}
Expand All @@ -458,6 +458,9 @@ -(BOOL)scrollToArticle:(NSString *)guid
}
++rowIndex;
}
if (!found) {
[articleList deselectAll:self];
}
return found;
}

Expand Down

0 comments on commit 62401e1

Please sign in to comment.