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

Commit 9c608f0

Browse files
authored
Merge branch 'master' into fixes/883-experimental-builds
2 parents 1c163da + 1052168 commit 9c608f0

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
lines changed

documentation/manifest.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,6 @@
141141
- [ ] Right clicking on a specific file displays options to open or compare file
142142
- [ ] Double clicking on a file opens a diff view of the file or a single file (depends on current file option)
143143
- [ ] Files in file diff view match diff on .com (pick any file)
144-
- [ ] **Change the changed files current view**
145-
- [ ] The view has been changed to the view selected
146-
- [ ] **Close & reopen Visual Studio**
147-
- [ ] **Go to any pull request details**
148-
- [ ] View of changed files was the selected view before closing Visual Studio
149-
- [ ] **Change the default file action**
150-
- [ ] Double clicking on a file in the changed file list opens a diff view if previous action setting opened the file, or a single file if the previous action setting opened the diff view (depends on current file option)
151-
- [ ] **Close & reopen Visual Studio**
152-
- [ ] **Go to any pull request details**
153-
- [ ] Double clicking on a file in the changed file list uses last default action setting open file/file diff
154144
- [ ] **Make a change any file and save it**
155145
- [ ] **Go to any pull request details and mouseover**
156146
- [ ] "Checkout to [branch name]" is plain text (not hyperlink) and mouseover displays tool tip

src/GitHub.App/ViewModels/PullRequestDetailViewModel.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,18 @@ public PullRequestDetailViewModel(
113113
public IPullRequestModel Model
114114
{
115115
get { return model; }
116-
private set { this.RaiseAndSetIfChanged(ref model, value); }
116+
private set
117+
{
118+
// PullRequestModel overrides Equals such that two PRs with the same number are
119+
// considered equal. This was causing the Model not to be updated on refresh:
120+
// we need to use ReferenceEquals.
121+
if (!ReferenceEquals(model, value))
122+
{
123+
this.RaisePropertyChanging(nameof(Model));
124+
model = value;
125+
this.RaisePropertyChanged(nameof(Model));
126+
}
127+
}
117128
}
118129

119130
/// <summary>

src/GitHub.VisualStudio/UI/Views/Controls/RepositoryPublishControl.xaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,24 @@
135135
IsChecked="{Binding KeepPrivate}"
136136
IsEnabled="{Binding CanKeepPrivate}"
137137
Style="{StaticResource VSStyledCheckBox}"
138-
AutomationProperties.AutomationId="{x:Static automation:AutomationIDs.TeamExplorerPrivateRepositoryCheckBox}" />
139-
<TextBlock Background="{DynamicResource GitHubVsToolWindowBackground}"
138+
AutomationProperties.AutomationId="{x:Static automation:AutomationIDs.TeamExplorerPrivateRepositoryCheckBox}" >
139+
<TextBlock Background="{DynamicResource GitHubVsToolWindowBackground}"
140140
Foreground="{DynamicResource GitHubVsToolWindowText}"
141141
TextWrapping="Wrap">
142-
<TextBlock.Resources>
143-
<Style TargetType="{x:Type TextBlock}">
144-
<Style.Triggers>
145-
<Trigger Property="IsEnabled" Value="False">
146-
<Setter Property="Opacity" Value="0.5" />
147-
</Trigger>
148-
</Style.Triggers>
149-
</Style>
150-
</TextBlock.Resources>
151-
<TextBlock.Inlines>
152-
<Run Text="{x:Static prop:Resources.makePrivateContent}" />
153-
</TextBlock.Inlines>
154-
</TextBlock>
155-
142+
<TextBlock.Resources>
143+
<Style TargetType="{x:Type TextBlock}">
144+
<Style.Triggers>
145+
<Trigger Property="IsEnabled" Value="False">
146+
<Setter Property="Opacity" Value="0.5" />
147+
</Trigger>
148+
</Style.Triggers>
149+
</Style>
150+
</TextBlock.Resources>
151+
<TextBlock.Inlines>
152+
<Run Text="{x:Static prop:Resources.makePrivateContent}" />
153+
</TextBlock.Inlines>
154+
</TextBlock>
155+
</CheckBox>
156156

157157
<Button x:Name="publishRepositoryButton"
158158
Margin="0,8,0,0"

0 commit comments

Comments
 (0)