Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mayerwin committed Feb 28, 2022
1 parent f53b451 commit fdb8dd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CustomizeVSWindowTitleShared/CustomizeVSWindowTitlePackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -595,13 +595,13 @@ private void ChangeXamlTitle(string title) {
var mw = Application.Current.MainWindow;
// This part was found by looking at the Document tree. Could possibly change in future releases
// but this is the name for 2019 and 2022.
var statusBartTextBlock = FindChild<DependencyObject>(mw, "PART_SolutionNameTextBlock");
var statusBarTextBlock = FindChild<DependencyObject>(mw, "PART_SolutionNameTextBlock");
if (statusBartTextBlock is null) {
if (statusBarTextBlock is null) {
return;
}
this.TitleTextBlock = FindChild<TextBlock>(statusBartTextBlock);
this.TitleTextBlock = FindChild<TextBlock>(statusBarTextBlock);
}
this.TitleTextBlock.Text = title;
}
Expand Down

0 comments on commit fdb8dd2

Please sign in to comment.