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

Commit b74a115

Browse files
authored
Merge pull request #457 from github/fixes/454-infopanel-message-visibility
Clear InfoPanel message when closed
2 parents e4a9f29 + 25680cf commit b74a115

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
DockPanel.Dock="Right"
3737
Foreground="Black"
3838
Background="Transparent"
39-
Click="Button_Click"
39+
Click="Dismiss_Click"
4040
Icon="x" />
4141
<TextBlock Margin="8,0"
4242
DockPanel.Dock="Top"

src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ static void UpdateVisibility(DependencyObject d, DependencyPropertyChangedEventA
4242
control.Visibility = string.IsNullOrEmpty(control.Message) ? Visibility.Collapsed : Visibility.Visible;
4343
}
4444

45-
void Button_Click(object sender, RoutedEventArgs e)
45+
void Dismiss_Click(object sender, RoutedEventArgs e)
4646
{
47-
this.Visibility = Visibility.Collapsed;
47+
this.Message = string.Empty;
4848
}
4949
}
5050
}

0 commit comments

Comments
 (0)