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

Commit e4139a1

Browse files
committed
Merge pull request #244 from github/repo-highlight
Compare local paths for proper highlighting Fixes #231
2 parents cf9b399 + 974844b commit e4139a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.VisualStudio/UI/Views/GitHubConnectContent.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public object Convert(object[] values, Type targetType, object parameter, Cultur
101101

102102
var item = values[0] as ISimpleRepositoryModel;
103103
var context = values[1] as IGitAwareItem;
104-
return item != null && context != null && context.ActiveRepoUri == item.CloneUrl;
104+
return context?.ActiveRepoUri == item?.CloneUrl && context?.ActiveRepo?.LocalPath == item?.LocalPath;
105105
}
106106

107107
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)

0 commit comments

Comments
 (0)