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

Commit 974844b

Browse files
author
Jasmine
committed
Added comparison for local paths. Shortened line by using null conditional operator.
1 parent cf9b399 commit 974844b

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)